Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete value from registry
Message
 
 
À
10/02/2005 21:01:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00985851
Message ID:
00985853
Vues:
28
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform