setRegistry and queryRegistry not working with "\"
Posted: Sat Feb 23, 2008 8:47 am
It appears that setRegistry and getRegistry do not work at all if the character "\" is present in the name of the value.
For instance, I am trying to set the following registry key, but am unable to do so via Revolution:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Name: C:\Path\To\My\App.exe
Type: REG_SZ
Data: WIN98
1. What is the correct setRegistry command to do this?
The following command does not work (Revolution thinks the "\" in the application path belongs to the registry path rather than to the value name):
This doesn't work either (attempting to use an additional "\" to "escape" the original "\"):
2. What is the correct getRegistry command to verify the current setting of the above data?
The following command does not work:
Thanks in advance.
For instance, I am trying to set the following registry key, but am unable to do so via Revolution:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Name: C:\Path\To\My\App.exe
Type: REG_SZ
Data: WIN98
1. What is the correct setRegistry command to do this?
The following command does not work (Revolution thinks the "\" in the application path belongs to the registry path rather than to the value name):
Code: Select all
setRegistry("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\C:\Path\To\My\App.exe","WIN98")
Code: Select all
setRegistry("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\C:\\Path\\To\\My\\App.exe","WIN98")
The following command does not work:
Code: Select all
getRegistry("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\C:\Path\To\My\App.exe")