Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pause in a DOS batch file
Message
From
30/09/2001 01:25:15
 
 
To
29/09/2001 18:50:39
General information
Forum:
Windows
Category:
Configuration
Miscellaneous
Thread ID:
00562296
Message ID:
00562313
Views:
20
>Hi. I have an NT Server and I am trying to pause a DOS batch file for 5 minutes (to allow users off before I back up).
> Sleep.exe (from the Windows Resource Kit) will do the trick, but I don't want to wait 10 days to get the CD here.
> Does anyone have an idea where I can get sleep.exe...or maybe a similar utility?

If you've installed the WSH, then you can use the Wscript's native Sleep method inside a short piece of VBScript. Better, you could entirely replace the batch file with a short script, using the Wscript.Shell Run method to fire various executables either synchronously or asynchronously. There's certainly nothing doable in a batch file that can't be done better in a script.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform