Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pause in a DOS batch file
Message
De
30/09/2001 01:25:15
 
 
À
29/09/2001 18:50:39
Information générale
Forum:
Windows
Catégorie:
Configuration
Divers
Thread ID:
00562296
Message ID:
00562313
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform