Wait for a CopyFile to Finish?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Wait for a CopyFile to Finish?

Post by Dexter1 » Thu Oct 29, 2009 5:07 pm

Currently our installation files pull a copy of an Access database from a shared network location to the user's desktop. I have hardcoded a 120 second wait into the files (this accounts for file size and network traffic), however not all files need to wait this long and on rare occasions they need to wait longer.

Is there a way to make a script pause until it has finished copying a file so I can avoid hardcoding a wait time?
Thanks,
Josh

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Oct 29, 2009 5:34 pm

See THIS THREAD

CopyFile> is modal so the script will pause until that long file copy has finished. I'm cautious so I'd still hardcode a short wait after the CopyFile>.

Dexter1
Pro Scripter
Posts: 64
Joined: Mon Jun 19, 2006 3:28 pm

Post by Dexter1 » Thu Oct 29, 2009 8:07 pm

Awesome thread. Thanks!
Thanks,
Josh

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts