Automatically running a programme from cmd on startup?

Soldato
Joined
1 Dec 2004
Posts
23,076
Location
S.Wales
Hi there,

Just a quick explination of what I am trying to achieve, I need to create a shortcut or some sort of batch file which runs on startup (so it needs to be placed in startup folder) which runs in cmd that will open one of my server apps (nzbget) a news grabber application that runs in a command window.

At the moment, to start it, I log on to my server (Windows 2003), open up a command window and type the following

cd c:\
cd utils
cd nzbget-0.6.0
nzbget -s

which will then target and open a file in the following directory

C:\Utils\nzbget-0.6.0 and run the file nzbget.exe

Any ideas on the best way to automate this process on startup? shortcut?
 
Copy those 4 lines into notepad. Save the file as run.bat instead of a .txt file. Drop that .bat file in the startup folder.
 
no need for all 4 lines,

just paste this into the bat file..

C:\Utils\nzbget-0.6.0\nzbget -s
 
no need for all 4 lines,

just paste this into the bat file..

C:\Utils\nzbget-0.6.0\nzbget -s

It shouldn't have been 4 lines anyway! It could have been

cd C:\Utils\nzbget-0.6.0

Though bledd is correct, the change directory command isn't needed at all in your case.
 
Sorry to state the obvious but you want a short cut to a program in start up?
Why not, erm, create a short cut to it in start up? :P
 
Sorry to state the obvious but you want a short cut to a program in start up?
Why not, erm, create a short cut to it in start up? :P

Wont work, its not an installed application like you can access from the start menu, its an executable file which needs to be run through command prompt, if you try to double click on the exe file it will just open for a second then close again.
 
Presumably because it requires the -s switch... you can add this to the short cut if you want! Either method achieves the same result though.
 
Back
Top Bottom