1

I would like to ask if there is any way of starting applications automatically when windows XP boots up, but approximately 1 minute after each other.

THe problem we are encountering is that we use Windows defualt "Run on startup" but we use it to run custom batch command and VPN client. The problem is, VPN client somehow prevents the batch command from executing properly so I would like to add a 1 minute window.

Basically:

  1. Run batch command (this opens via a separate shortcut)
  2. Wait 1 minute
  3. Run VPN client

Thanks :)

3

use ping to fake a delay (each successive ping adds 1 second), so -n 2 is 1 second, -n 3 is 2 seconds, and so on

start "" mybatch.bat
ping -n 61 127.0.0.1
start "" vpnclient.exe

and use that as the startup batchfile, instead of the two programs you have now.
start requires a supposedly optional title, but it seems to give more issues if you leave it out

|improve this answer|||||
  • Hacky and elegant all at the same time – Jason Bristol Jul 30 '13 at 13:34
  • You can use 'sleep 60' as well – VL-80 Jul 30 '13 at 14:18
  • Thanks for the tip. I tried it out, however all I am getting is "Windows cannot find the file xxxx.bat" :/ – Daniel Hladik Jul 30 '13 at 14:22
  • Scratch the above, I just need to find out how to launch batch command in a separate window. Thanks though :) – Daniel Hladik Jul 30 '13 at 14:34
  • 1
    I suggest you write a comment in that batch file, explaining why the ping is there - this is one of those hacks where your successor will scratch his head wondering what the ... you've been doing (and subsequently submit it to thedailywtf.com) – Jan Doggen Jul 31 '13 at 6:17
1

I use the free Startup Delayer to reduce boot-up time under XP, it allows you to specify when programs start (either after a fixed delay, or when e.g. the CPU is idle).

|improve this answer|||||
  • Thanks for the tip as well, however as this a computer we use for running tests, we prefer to have as little programs installed as possible :) – Daniel Hladik Jul 31 '13 at 4:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.