New
#1
I am having a lot of difficulty running batch files. I simply want to create a runonce logon script that will install my .reg file I have created for every user who creates an account on this computer. My file is called c:\tweaks.reg. The file works fine when I double click it or run from command line using regedit /s c:\tweaks.reg.
When I enter this into a batch file to link to my run once script, it does not work.
The problem is command prompt appears and disappears instantly without executing the .reg file.
@echo off
regedit /s c:\tweaks.reg
What am I doing wrong? This is happening on both of my Windows 7 systems and one is a fresh installation. Thanks in advance!
I should note the .bat file is not working running it alone (before putting it into the run once script) so this is not an error in the .reg or the run once script.