Batch file to delay program startup
Note that this only works for Programs that start up, not things added to shell:startup, I believe. This also needs admin rights and the program itself needs to launch at startup. Free version seems to be more than enough for me. Indrek It would be nice if it weren't because timeout isn't available on Windows XP Create a batch file called "5minsdelayStart": echo off rem sleeping for milliseconds 5 minutes ping -n 1 -w -4 Add this batch file to your startup folder.
Jeffy Jeffy 2 2 bronze badges. I can't find anywhere in the docs what the 3rd parameter -4 means, but it definitely does something as the command runs properly and it doesn't throws an error. Could you please give us a hint? Ivan Ivan 1 1 silver badge 4 4 bronze badges. CreateObject "Wscript. Shell" WScript. Sleep Shell. Run """notepad. Run "notepad. To all thoose that say " First remove them from run at startup. Some have the option to not auto-start, but others do not have. This is really a comment and not an answer to the original question.
You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.
Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Sign in Sign up. Instantly share code, notes, and snippets. Last active Jun 24, Code Revisions 2 Stars 3. Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. Batch script to delay startup of applications after boot. Alec 6, 7 7 gold badges 25 25 silver badges 52 52 bronze badges.
Yustme Yustme 5, 21 21 gold badges 71 71 silver badges bronze badges. Add a comment. Active Oldest Votes. If you need to quote the command, use another quoted string first as the window title.
Improve this answer. Raihan Raihan 9, 5 5 gold badges 25 25 silver badges 43 43 bronze badges. Show 1 more comment. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント