Help - Search - Members - Calendar
Full Version: Delayed autostart
Hydrogenaudio Forums > Misc. > Off-Topic
tigre
Hi.

I have two programs that need to be started on windows startup (Win2KSP4). Problem: One program needs the other to be launched completely, otherwise it will not work properly. Because of that the second program should be started delayed by something like 5 seconds. Is there any software capable of doing this (free if possible), or even an easier way?

Thanks for your answers.

Cheers tigre
Florian
If you have Windows Scripting Host installed, you can do this by putting a small vbs-script to your startup folder, which starts your application.

Here is the code of the start-delayed-app.vbs:
CODE
WScript.Sleep 5000
Dim oShell
Set oShell= WScript.CreateObject("WScript.shell")
oShell.run """calc.exe"""
Set oShell= Nothing

This will wait 5 seconds and then starts the windows calculator wink.gif Simply replace calc.exe with the full filepath to your application.

Hope that helps!
~ Florian

edit: script now supports filenames with spaces too wink.gif
tigre
Works perfectly after I told Norton Antivirus and Kerio Personal Firewall that it's not evil. ph34r.gif It's not, or is it? laugh.gif. No annoying DOS-windows popping up anymore (that happend using a .bat file). Thanks a lot.
tigre
Thanks! Last night I had a dream about what it could look like - the application you linked to looked exactly the same. tongue.gif What a beauty!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.