How would I make a Program autostart by using a batch to make the reg entry. Ive found some examples but not really what i need to know.
:: Create a temporary .REG file
> "%Temp%.\DefOpen.reg" ECHO REGEDIT4
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg"ECHO [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
>>"%Temp%.\DefOpen.reg" ECHO @="%_%start note pad"
>>"%Temp%.\DefOpen.reg" ECHO.
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
>>"%Temp%.\DefOpen.reg" ECHO @="notepad.exe \"%%1\""
>>"%Temp%.\DefOpen.reg" ECHO.
(note code isnt mine, still learning)
the temp file is loaded to the registry later in the batch file. I really have no idea how the format of writing a reg entry in batch would llook like. I think im kinda on the right path but having problems with the lines that are in bold??? just say i want to run notepad every startup.
-toe
|
Page 1 of 1
Registry Entrys In Batch
#3
|
Our Sponsors: |

Sign In
Register
Help
MultiQuote