-
Mar 2nd, 2005, 10:01 AM
#1
Thread Starter
Hyperactive Member
Timing, finish zipping before continuing
I have a VB-Script that
1- Zips some files
2- Moves the resulting Zip to a target location
And I just noticed a nice little bug that I don’t know how to fix, specifically the timing aspect.
:: VB-Script Code ::
oShell.Run zipDir + "Zip.exe " + strCommandLine
oFSO.MoveFile Source, Destination
This will run my Zip.exe to perform the required task, however on the very next line I perform a MOVE of the resulting zip file (that may not yet exist, this is my problem).
So I need a way to make my VB-Script wait for the Zip file to be generated (really not long). Any clues? Shell return values? I can’t have a 50% failure rate… Any clues?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|