Hi, I'm trying to get my script to wait until a file exists before it continues.
Sorry I'm sure this is a really obvious one...
My instinct is to use iffileexists>itdoes,itdoesnt but I'm not sure what to use for label>itdoesnt. Should I stick a label before the iffileexists command & stick in a wait, or is there a more efficient way to go about this?
Thanks
Making the script wait 'til a file exists
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I have had problems using IfFileExists. Not because of Macro Scheduler, but because how the file was created. So at times I need to check the FileSize every few seconds. Once the size stops growing then I know I can work with it safely.
This has happened frequently when using FTP to up/download a file. The filename will exist, but the file size is not complete. May also check the original size being up/downloaded and wait until result size equals original source size.
This has happened frequently when using FTP to up/download a file. The filename will exist, but the file size is not complete. May also check the original size being up/downloaded and wait until result size equals original source size.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!