Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete value from registry
Message
 
 
To
10/02/2005 21:01:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00985851
Message ID:
00985853
Views:
29
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform