|
|
Question : Unable to Write Registry Key with .bat file on startup
|
|
I created a .bat file and set it on startup.
The .bat file references a .reg file regedit /s filename.reg.
However, this doesn't appear to be working. If I click on the .bat file it will set of the .reg file.
If I edit the .bat to say notepad.exe regedit /s filename.reg
The notepad starts but the key is not written.
Any ideas?
|
Answer : Unable to Write Registry Key with .bat file on startup
|
|
A couple of suggestions:
1. Try putting the full path to filename.reg
2. Startup scripts are run as system so you can run as system by doing the following: - Open CMD - run this command "at 00:55 \interactive cmd" where 00:55 is the current time + 1 minute - run the script in the nice new command window (should have svchost in the label) - check for errors.
Cheers Stu
|
|
|
|