View Full Version : REG ADD with a .bat

07-02-2008, 02:14 AM
Hey all, well im kind of new to all this stuff and i was just wondering how i could get a .bat file to put a .exe program into the Reg so it would start it upon logging on to the computer? i have the code and all but when ever i try it, it wont work, can someone give me an example of how it should look?

REG ADD [ROOT\]RegKey /v ValueName [/d Data] [/f]

that is what i'v started with but im not sure im doing it right i have done this..

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
REG ADD %KEY% /V CGA /D “C:\Docume~1\Totenmaske\Desktop\Tidefu~1\CGA2.exe” /f