chadbalser
asked on
RegDelete a String Value that contains a directory path...
I am having issues deleting a registy string value that contains a path... C:\DirectoryPath
The registry key is... HKLM\SOFTWARE\Microsoft\Wi ndows\Curr entVersion \Installer \Folders\
The string value is... C:\DirectoryPath
I have used \ and \\ between the two, but am still getting errors.
I expect it is just an issue of string structuring, I can easily do this in cmd form, but this was a new challenge.
The registry key is... HKLM\SOFTWARE\Microsoft\Wi
The string value is... C:\DirectoryPath
I have used \ and \\ between the two, but am still getting errors.
I expect it is just an issue of string structuring, I can easily do this in cmd form, but this was a new challenge.
set WshShell = CreateObject("WScript.Shell")
strValue="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders\C:\DirectoryPath"
WshShell.RegDelete strValue
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you're welcome, glad it works now :)
ASKER
Chad