You can use Try...Endtry error handler
See
How can I find if MS office is installed and what versionMessage #
1076819>Using Windows Script,
>If I try to read(RegRead) a Key that does not exist or
>if I specify a bad parent key I got an error.
>How can I handle this error? Using FoxPro
>ON ERROR?
--sb--