1.

Solve : Make A Batch File Run On Its Own?

Answer»

haw can i get a batch file start up when my laptop starts up? what do i put at the start of the batch file?Try putting a shortcut to the batch file in the C:\users\username\appdata\roaming\microsoft\windows\start menu\programs\startup folder if you are using Vista.Theres a couple DIFFERENT ways..

first using regedit

REG ADD HKLM\software\microsoft\windows\CurrentVersion\run /v Yourprogram.cmd /t REG_SZ /d "C:\yourprogram.cmd" /f

you can type /ve instead of /v if you wish to enter no registry key name..

then using SC.EXE
sc create YourProgramName binPath= "C:\Yourprogramname.cmd -k runservice"

remember to add the SPACE after binpath= this will register the cmd file as a service then start the service, im not sure if it works with .bat or .cmd files, but if you compile it to an executable it KNOW it works..Quote from: thecomputer on December 02, 2008, 02:17:38 PM

Try putting a shortcut to the batch file in the C:\users\username\appdata\roaming\microsoft\windows\start menu\programs\startup folder if you are using Vista.

If you are using XP it's

C:\Documents and Settings\username\Start Menu\Programs\Startupits very easy
when you have created your batch file copy it or cut
and then
right CLICK on your start button click on open>programs
and there you will see startup paste your file there

any thing in startup folder will run automatically when COMPUTER starts

hope this help you


Discussion

No Comment Found