Why are you guessing instead of looking at the RegDelete method syntax? See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthregdelete.asp.
myReg.RegDelete( runPath )
>
>For writing in Registry, I use following command
>
>myReg = CREATEOBJECT("WScript.Shell")
>runPath = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\RunTest"
>myReg.RegWrite( runPath,"d:\Tray\tray.EXE","REG_SZ" )
>
>It works fine and value is written in registry.
>
>To delete from Registry, I use following command
>
>MYREG = CREATEOBJECT("WScript.Shell")
>RUNPATH = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\RunTest"
>myReg.RegDelete( runPath,"d:\Tray\tray.EXE","REG_SZ" )
>
>
>It does not work and shows following error message
>
>OLE error code 0x8002000e:Invalid number of parameters
>
>What is wrong? please modify my command or suggest another to delete value from registry.
>
>Thanks in advance
--sb--