Adding a "wait X time" command to a startup program

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey people, im looking for a way to tell a program that starts up when i
login to wait X seconds before starting, like for non-essential but ressource
hogging background/tasktray items.
Sounds simple but i've searched google and these newsgroups and the 2 main
problems that i encounter are the massive amount of articles, posts, treads
and how-to's that contain the word "startup" and that im lazy (x_x)
 
Nigth said:
Hey people, im looking for a way to tell a program that starts up
when i login to wait X seconds before starting, like for
non-essential but ressource hogging background/tasktray items.
Sounds simple but i've searched google and these newsgroups and the
2 main problems that i encounter are the massive amount of
articles, posts, treads and how-to's that contain the word
"startup" and that im lazy (x_x)

Instead of starting it up directly, start it with a script and have it sleep
for a given amount of time.
 
Ramesh Srinivasan's Blog: Launch a program after a certain interval:
http://winonline.blogspot.com/2006/01/launch-program-after-certain-interval.html

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hey people, im looking for a way to tell a program that starts up when i
login to wait X seconds before starting, like for non-essential but
ressource
hogging background/tasktray items.
Sounds simple but i've searched google and these newsgroups and the 2 main
problems that i encounter are the massive amount of articles, posts, treads
and how-to's that contain the word "startup" and that im lazy (x_x)
 
Ramesh said:
Ramesh Srinivasan's Blog: Launch a program after a certain interval:
http://winonline.blogspot.com/2006/01/launch-program-after-certain-interval.html

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com

Yea thats exactly what i needed, i hope it works, i've made a few vbc
startup files, but im unsure if i should change the CreateProcces ( or
somthing ) line, cuz one might start when the other one isn't finished and
myb process name conflict
 
Nope, when i run the script it says : Error : The system cannot find the
file specified.
Code: 80070002 Source: (null)
Script:
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
WshShell.Run "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe \Q"
Set WshShell = Nothing

Nigth Stalker said:
Ramesh said:
Ramesh Srinivasan's Blog: Launch a program after a certain interval:
http://winonline.blogspot.com/2006/01/launch-program-after-certain-interval.html

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com

Yea thats exactly what i needed, i hope it works, i've made a few vbc
startup files, but im unsure if i should change the CreateProcces ( or
somthing ) line, cuz one might start when the other one isn't finished and
myb process name conflict
 
It's due to the long file name. Try this:

- - -
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
WshShell.Run chr(34) & "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe" &
chr(34) & " \Q"
Set WshShell = Nothing
- - -

Note that there should be a blank space before the text "\Q"

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Nope, when i run the script it says : Error : The system cannot find the
file specified.
Code: 80070002 Source: (null)
Script:
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
WshShell.Run "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe \Q"
Set WshShell = Nothing
 
Okay thanks now it works fine atm.

Ramesh said:
It's due to the long file name. Try this:

- - -
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
WshShell.Run chr(34) & "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe" &
chr(34) & " \Q"
Set WshShell = Nothing
- - -

Note that there should be a blank space before the text "\Q"

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Nope, when i run the script it says : Error : The system cannot find the
file specified.
Code: 80070002 Source: (null)
Script:
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
WshShell.Run "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe \Q"
Set WshShell = Nothing
 
Hello Nigth,
Download nircmd command line utility and put it in windows folder.

If you want to delay services listed in Control Panel>Administrative Tools>Services,
put them in Manual start up mode.

Then make this xxx.cmd file and put it in Windows folder:
nircmd wait xxx (miliseconds) service start (name of service)

For programs in Start>All Programs>Start Up:
nircmd wait xxx (miliseconds) exec hide(show) ("Path to program")

When you are done with all commands, save file to Windows folder and put
a shortcut in Start>All Programs>Start Up

NS> Hey people, im looking for a way to tell a program that starts up
NS> when i
NS> login to wait X seconds before starting, like for non-essential but
NS> ressource
NS> hogging background/tasktray items.
NS> Sounds simple but i've searched google and these newsgroups and the
NS> 2 main
NS> problems that i encounter are the massive amount of articles, posts,
NS> treads
NS> and how-to's that contain the word "startup" and that im lazy (x_x)
GALAracunala
http://free-st.t-com.hr/GALAracunala/
 
Back
Top