You can use RegRead method and error habndler to cherck for key existence
llRegKeyExists = .F.
TRY
WSHShell.RegRead("HKCU\TESTX\")
llRegKeyExists = .T.
CATCH
llRegKeyExists = .F.
ENDTRY
>i can create key(s) in registry via WSH,
>i want to also detect if key (parent key specially actually is not exist other ones no important to continiue for app.)
>exist each time my app start .
>i've tried to check if exist or not with sample TESTX key value via registry.vcx but i couldn't
>
>how can i doit via WSH or registry vcx ?
>
>TIA
>
<snip>
--sb--