Reputation: 1
I have a batch file which is converted to a exe application I'm struggling to insert a batch code in the file so my application auto starts when windows 7 boots. In my batch file I tried adding REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\Scripts\Startup /v winboot /t REG_SZ /d C: Path to my application, this value is successfully added but my application does not start every time the computer boots. I have also tried various methods but no luck
Can anyone help I need a batch command to insert into my file so it starts when the operating system starts from reboot and it should be retained following conversion to the exe application?
I have tried using this also at the start of my bat script REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /reg.bat /t REG_SZ /F /D C:\Desktop\reg.bat Then my script below... It's still not loading at start up using windows 7
Upvotes: 0
Views: 1712
Reputation: 154
That's for group policy logon/off scripts.
Try HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
(need to be admin to write here).
Run
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\
Description
The Run subkey of HKEY_LOCAL_MACHINE\Software stores the names of programs that Windows 2000 runs at startup, for all users of the computer, each time the system starts.
Each entry in the subkey represents a program. The value of the entry is the name of the executable file for the program. These entries have the following format:
Program Name REG_SZ File name
From Windows 2000 Resource Kit Reference, Technical Reference to the Windows 2000 Registry in the Windows 2000 Resource Kit.
Upvotes: 0