Home / Microsoft / Microsoft DOS / Run a batch while sleeping
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Run a batch while sleeping  (Read 534 times)
noahdfear
Guest
« on: April 15, 2005, 11:33:08 PM »

Hello everyone! I'd like to have a second batch run while the first is in delay, displaying a message to wait. I also want it to run after killing explorer. I've downloaded and using sleep.exe for the delay/display, but unsure if the second batch is actually running during the sleep, or if it runs completely before sleep starts, or if sleep kills it. In general, the second batch will run very quickly, but may take upwards of 5 to 7 seconds, so have sleep set at 10. Does sleep put everything to sleep, or just the batch it's running from?

Not sure if it matters, but this is intended to run on XP.

Any help would be appreciated. Batch files are completely new to me.
« Last Edit: April 15, 2005, 11:56:14 PM by noahdfear » IP logged
noahdfear
Guest
« Reply #1 on: April 16, 2005, 12:19:45 AM »

After posting I got a brainstorm and answered my own question. I put batch 2 into an endless loop and watched it run continuously during the 10 second sleep. ;D
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Run a batch while sleeping « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.121 seconds with 18 queries.