Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Anyone knows if its possible to add a timer do this command? I want to access a certain website in my default browser minutes after typing.

start "" "http://superuser.com/"

This worked but it doesn't have the timer.

Something like the shutdown command, you know:

shutdown -s -t 60

I tried this but didn't work:

start "" "http://superuser.com/" -t 600

Can anyone help me?

share|improve this question
    
Have you seen SlickRun? bayden.com/slickrun –  FooBar Jul 8 at 14:56

2 Answers 2

A commonly used way of halting a batch file is to use the "ping" command and set it to ping an invalid adress and then wait for the amount of time you choose and then continue in the script. You can see an explanation here

So your script would look like this:

ping 1.1.1.1 -n 1 -w 60000 > nul
start "" "http://superuser.com/"

This will open superuser.com after 1 minute (60000 miliseconds)

Put everything inside and empty text file, save as superuser.bat (important to select "Any filetype" in the save dialouge) and run whenever you want to wait a minute for superuser.com to show up.

share|improve this answer

The command you're looking for is timeout

(timeout 60 /NOBREAK
start "" "http://superuser.com/")
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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