Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.