0

this is a very basic command prompt question (sorry if i posted it in the wrong place)

is there a command for cmd to sleep/wait for say 5 seconds?

like say i have a .cmd file that says "start www.google.com" but i want it to wait 5 seconds before opening it? is that possible?

also is there any command that instead of opening the site in a new window, it just refreshes the existing window? this is actually less necessary because i can just do start followed by taskkill.

1
Contributor
2
Replies
3
Views
8 Years
Discussion Span
Last Post by max.yevs
0

alright, i'll do without it... by integrating python.

.cmd:

start www.google.com
sleep.py
taskkill/im iexplore.exe

sleep.py:

import time
time.sleep (5)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.