Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: HKEY_CURRENT_USER
key=RegCreateKey(@REGCURRENT,"Software\ODBC\ODBC.INI\Tide") RegSetValue(key, "[Autostop]", "yes") RegCloseKey(key)Why does this insist on placing itself in the HKEY_USERS Default section. HELP!!! this is and function from within a script I wrote. When executed from within a script it will not place the key in the right area (HKEY_CURRENT_USER), it places it in HKEY_USERS???
It is a compiled EXE that is pushed down to a machine and then executed. The computers will be receiving this push at all hours so it could be at a login prompt (winnt) or logged in. I am currently testing on a nt machine that has a "user" logged in...
If I were to theorize on a possible solution it might be to update the "RunOnce" section of the @REGMACHINE part of the registry to launch another exe to run when the user logs in so that it runs as an user under the user. That should update the proper registry key.
Article ID: W14166
Filename: RegCreateKey Creating Key in Wrong Reg Hive.txt
File Created: 1999:06:09:14:37:58
Last Updated: 1999:06:09:14:37:58