Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the below with mods but ziping several Gb of info the last command is Wscript.sleep 2000. I have extended this to 20,000 and 200,000 but I use the script vor various diferent sizes. Is there a way of ensuring the task finishes before exiting or alternativly exits when finished rather than sticking in a wait that is to long for short ones and may be to short for larger ones?

CScript _zipIt.vbs
Can you zip a file from command prompt?

share|improve this question
have a look here, it is a complete vbs example – random Feb 23 '12 at 20:45
A later answer to that question shows how to watch for the windows to disappear before exiting the script. – afrazier Feb 23 '12 at 21:32

You must log in to answer this question.

Browse other questions tagged .