1 Attachment(s)
Creating Registry Sting Key with Pathname.
I have done this two different ways now but get the same result.
I need to create a string key entry in the registry.
The problem is that the Key name and the Key value are both file paths.
When I create the key I get a list of subdirectories under the key. Probably because the Key Name is a path.
Can anyone suggest how I get around this?
Code:
Registry.RegWrite "HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl", "C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE", "C:\Test.pdf*"
Re: Creating Registry Sting Key with Pathname.
why not use something like:
Code:
private sub SavePath(byref sPath as string)
SaveSetting App.Title, "Settings", "Path", sPath
end sub
'and
private Function GetPath() as string
GetPath= GetSetting(App.Title, "Settings", "Path", "")
end function
Re: Creating Registry Sting Key with Pathname.
I need to save it in HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
It's not a key I need to create for my application but one under Acrobat Distiller.
How would I create a key in this exact path?
Re: Creating Registry Sting Key with Pathname.
I can't remember how.
But I believe I found some code for making diff types of keys on PSC once.
Re: Creating Registry Sting Key with Pathname.
WSH won't let you create a value name that contains backslashes (it's a bit limited) - you'll have to use the APIs or WMI.