Start-up Order

  • Thread starter Thread starter Willy
  • Start date Start date
W

Willy

How do I re-arrange the Start-up order of apps when PC Restarts/Starts?
I've a Email checking app that starts before the PC is connected to my LAN.
 
Willy said:
How do I re-arrange the Start-up order of apps when PC Restarts/Starts?
I've a Email checking app that starts before the PC is connected to my
LAN.

Place a batch file into your Startup folder with the
following lines:
@echo off
:again
ping www.google.com | find /i "bytes=" > nul && goto Connected
ping localhost -n 60 > nul
goto again

:Connected
"c:\Program Files\MyApp\mailcheck.exe"

Post again if the above makes no sense to you.
 
Thanks but yes I'm lost on what it will do when I put it in Startup Folder.
Can you explain?
 
You don't do anything. Shortcuts and batch files that reside in
the Startup folder will run automatically at logon time.
 
let it be known on Thu, 25 Oct 2007 00:16:54 -0400
"Willy" <[email protected]> scribed:

|How do I re-arrange the Start-up order of apps when PC Restarts/Starts?
|I've a Email checking app that starts before the PC is connected to my LAN.
|--
|Thanks, Bill
|Post replies back to News Group
|
|

Bill,

You might try something like Startup Delayer here:
<http://www.r2.com.au/software.php?page=2&show=startdelay>

I've never personally used it so I can't endorse it but I've seen it mentioned in this group before.

hth
 
Understand that but confused as to what the batch file you recommend will
do? Ping Google, etc.?
 
OK, let's have a look at the various lines of my batch file:

1 @echo off
2 :again
3 ping www.google.com | find /i "bytes=" > nul && goto Connected
4 ping localhost -n 60 > nul
5 goto again
6 :Connected
7 "c:\Program Files\MyApp\mailcheck.exe"

Line 1: This line prevents the commands from appearing on
the screen while the batch file runs.

Line2: This is a label that is used by Line 5.

Line3: This line consists of three components:
a) It pings google.
b) It monitors the reply it gets.
c) If the reply contains the string "bytes=" then it jumps to the label
"Connected". This string is generated only when your PC gets a
reply from Google. It therefore tells you that your Internet
connection is live.

Line4: This line causes the batch file to pause for about one minute.

Line5: Go back to the label "Again".

Line 6: This is where the batch file resumes when your
Internet connection is live.

Line 7: This is your EMail checking command.
 
Pegasus (MVP) said:
OK, let's have a look at the various lines of my batch file:

1 @echo off
2 :again
3 ping www.google.com | find /i "bytes=" > nul && goto Connected
4 ping localhost -n 60 > nul
5 goto again
6 :Connected
7 "c:\Program Files\MyApp\mailcheck.exe"

Line 1: This line prevents the commands from appearing on
the screen while the batch file runs.

Line2: This is a label that is used by Line 5.

Line3: This line consists of three components:
a) It pings google.
b) It monitors the reply it gets.
c) If the reply contains the string "bytes=" then it jumps to the label
"Connected". This string is generated only when your PC gets a
reply from Google. It therefore tells you that your Internet
connection is live.

Line4: This line causes the batch file to pause for about one minute.

Line5: Go back to the label "Again".

Line 6: This is where the batch file resumes when your
Internet connection is live.

Line 7: This is your EMail checking command.

Your response to Willy's specific question seems straight forward to me but
I want to expand on the question in a more general sense.

If I have 5 different items in my startup folder is there anyway I can
control the order in which they start during a boot?
 
Gilgamesh said:
Your response to Willy's specific question seems straight forward to me
but I want to expand on the question in a more general sense.

If I have 5 different items in my startup folder is there anyway I can
control the order in which they start during a boot?

Sure. Instead of placing a shortcut for each item into the
Startup folder, invoke them through a single batch file which
you place into the startup folder. This batch file may contain:
- Lines that point to executables (e.g. "c:\tools\MyApp.exe")
- Lines that point to shortcuts (e.g. "c:\MyShortcut.lnk")
- Lines that point to other batch files (e.g. "c:\Tools\MyBatch.bat")

In the last case you must invoke the other batch files with
a "call" statement. If you don't then control will never return
to the calling batch file.

You must surround all references with double quotes if they
contain embedded spaces. It's best to do so for all references,
even if they contain no embedded spaces.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top