XP - STARTUP Programs in order???

Soldato
Joined
7 Feb 2004
Posts
9,511
Is there anyway to make startup programs run in a particular order when you login to a computer?

I know you can put them in startup but it runs it in a different order.

Thanks!!
 
Rather than put individual things in the startup folder maybe you could create a batch file to launch them ? That way you can specify the order they start in.
 
TheKnat said:
Rather than put individual things in the startup folder maybe you could create a batch file to launch them ? That way you can specify the order they start in.

Any idea on how to do this, or where I could read up on this?
 
Create a text file, put the relevant lines to the programs you want to load like this...

Code:
C:\WINDOWS\system32\example.exe
C:\WINDOWS\example2.exe

Then rename the file example.bat or example.cmd where example can be any name you like.

The only thing i can't figure out is how to make the CMD window autoclose, so thats the one thing you'll have to do each time.

I just googled batch files, it's pretty simple, yet none of the suggested ways seem to work for closing the window, but opening apps using the code i posted above works just fine.

Just google ' batch files ' if you want anymore info.... its dead easy to do.
 
t31os said:
Create a text file, put the relevant lines to the programs you want to load like this...

Code:
C:\WINDOWS\system32\example.exe
C:\WINDOWS\example2.exe

Then rename the file example.bat or example.cmd where example can be any name you like.

The only thing i can't figure out is how to make the CMD window autoclose, so thats the one thing you'll have to do each time.

I just googled batch files, it's pretty simple, yet none of the suggested ways seem to work for closing the window, but opening apps using the code i posted above works just fine.

Just google ' batch files ' if you want anymore info.... its dead easy to do.

That won't really work, what you need to do is put "start" before each line eg:

Code:
start C:\WINDOWS\system32\calc.exe
start C:\WINDOWS\system32\mspaint.exe
start C:\WINDOWS\system32\notepad.exe

The code you posted will run one process and then wait until it is terminated before moving on to the next line, by putting start at the beginning of the line it will start the application and then carry on through the batch file.

Once the batch file is complete it will close automatically, although when you want it to terminate early, "exit" is used.

There is a lot about batch files over at Computer Hope
 
Yep just spent all this time finding that out, came to post it and you've posted the solution... :p took me ages to figure it to... lol

Quite liking the use of batch files, never really realised how simple they are...... i'm off to play... :D

If you need to point to the program files folder you may get an error due to the space in the folder name, so use this...

Example:
Code:
start C:\PROGRA~1\otherfolder\example.exe

or just do it like this...

Code:
start "C:\Program Files\otherfolder\example.exe"
 
Last edited:
Also to hide the command info use @Echo off at the start of the command batch file and to make the window close at then end type Exit on the last line of the file.

Code:
@echo off
start "c:\program files\otherfolder\example.exe"
start "c:\program files\otherfolder\example.exe"
exit

if you do a google for a program called CMDOW.exe you can hide the window all together. Place the cmdow.exe file in the windows system32 folder and it will run form any location. then all you have to do is add @cmdow.exe @ /hid to the start of the command file. Like this

Code:
@cmdow.exe @ /hid
@echo off
start "c:\program files\otherfolder\example.exe"
start "c:\program files\otherfolder\example.exe"
exit
 
Back
Top Bottom