Hi,
I'm trying to write a script which will change some drive letters. The key I need to edit is:
[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices], and the value is: "\\DosDevices\\Q:"=hex:5c,00,0.......1,00,7d,00", where the hex value has been trimmed for readability.
As you can see, the value name has backslashes, which is really annoying for me, as I can't seem to read or write keys with backslashes in the value name (they are interpreted as keys).
I don't think the regread and regwrite functions are going to help me in this case, but does anybody have an alternative method of reading and writing keys? I would very much like to avoid reading and writing text registry keys (*.reg files) as that is messy. Is there some API calls or some other tool available?
Thanks in advance for any help.
Regards,
Paul Dorman
I'm trying to write a script which will change some drive letters. The key I need to edit is:
[HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices], and the value is: "\\DosDevices\\Q:"=hex:5c,00,0.......1,00,7d,00", where the hex value has been trimmed for readability.
As you can see, the value name has backslashes, which is really annoying for me, as I can't seem to read or write keys with backslashes in the value name (they are interpreted as keys).
I don't think the regread and regwrite functions are going to help me in this case, but does anybody have an alternative method of reading and writing keys? I would very much like to avoid reading and writing text registry keys (*.reg files) as that is messy. Is there some API calls or some other tool available?
Thanks in advance for any help.
Regards,
Paul Dorman