Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 25-01-2007, 09:51   #1
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default Controlling the order of things in the startup group?

I want to control the order in which things start on my Windows 2000 server, preferably introducing a delay in between them.

Anyone know of a tool to do this?
__________________
Feek is offline   Reply With Quote
Old 25-01-2007, 11:06   #2
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

Services or applications (in startup or the run registry key)?

Services you can sort by playing with the dependencies (there are 'runlevel' equivalents but only a small number and I dont think there's any way to specify an order within a runlevel), not sure about the others.

[edit]
If it's startup entries, then instead dump a batch/vbscript script in there to start the programs one by one.

If they're in run, then I'm not sure :/
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 25-01-2007, 11:25   #3
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default

Applications, I don't care about services.

I guess I could do it with a batch file, but I need some timed pause command which isn't there by default.
__________________
Feek is offline   Reply With Quote
Old 25-01-2007, 11:27   #4
iCraig
iCustom User Title
 
iCraig's Avatar
 
Join Date: Jul 2006
Posts: 2,250
Default

Batch file sounds best.

Why do you need a pause? If the programs get started in a certain order, won't they all eventually be opened in the same order?
__________________
iCraig is offline   Reply With Quote
Old 25-01-2007, 11:29   #5
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

Quote:
Originally Posted by iCraig View Post
Why do you need a pause? If the programs get started in a certain order, won't they all eventually be opened in the same order?
Depends how it's started, the Windows shell isnt very clever. Which is why I suggested using 'start', so you have some control over it
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 25-01-2007, 11:28   #6
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

'sleep' should be sleep 5 will wait 5 seconds.

Execute each command prefixed with start (start C:\windows\notepad.exe), gives you some more options if you want them (/wait will pause the script until that command terminates, /min for minimized, /max for maximised etc).

Code:
REM Start notepad
start /max notepad
REM Wait 5 seconds
sleep 5
REM Shutdown the box in 30 seconds
shutdown -s -f -t 20
etc etc
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 25-01-2007, 11:32   #7
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default

Erm, since when was 'sleep' a valid command in dos or windows?

Craig, yes, they will start in the order I want without a pause, but there a couple I want to finish loading and settle down before the next load...
__________________

Last edited by Feek; 25-01-2007 at 11:35.
Feek is offline   Reply With Quote
Old 25-01-2007, 11:41   #8
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

LOL, sorry, I have UnxUtils in path on all my Windows boxes, sometimes I forget it

Here you go:
Attached Files
File Type: zip sleep.zip (7.5 KB, 2 views)
__________________
apt-get moo
Daz is offline   Reply With Quote
Old 25-01-2007, 14:08   #9
Feek
ex SAS
 
Feek's Avatar
 
Join Date: Jun 2006
Location: JO01ou
Posts: 10,062
Default

Ta
__________________
Feek is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:53.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.