Ok,

do you have this line in your script ?



$HKCUSMWNTCV = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion"



If not it is no wonder that It fails

Hope this helps

Additionally :

to see what a variable contains :

code:
 
$var ? ;displays the value of the variable to the console and sets cursor in next line

get $ ;pause script execution until a key is pressed



[ 11. March 2003, 14:08: Message edited by: jpols ]
_________________________