Sign in to follow this  
Followers 0
Ted at Miles

How do I PAUSE to wait for a large file to save?

3 posts in this topic

:) I have an autoit script that is pulling data off a large billing system. After a report compiles in the billing system (started by AUTOIT oc course) it saves the file. After the save is done I want autoit to then continue. How do I make it pause while a DOS window is compiling? Is there a way to do it using explore folders and files?

The place it needs to pause is at the end of this script,. Before is copies the file to the C drive. I have to run this script about 150 times, and would like to find a way to make it pause only until the file is saved. The time is takes varies a great deal. One prov might take 2 minutes, another might take 45 minutes.

GET_P011_AGINGS_ALL_LOCATIONS_ALL.au3

Share this post


Link to post
Share on other sites



well since the Medisense is doing the save, you could look for a end string at the end of the txt file (if there is one) or do a filescan until medisense doesnt have a filehandle open to that specific file.

-B


---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

Hi,

Would

1. Waiting till cmd.exe no longer running help.

OR?

2. wait till filegetsize is zero [or not returning as in use], then wait till not zero, then wait till file getsize not changed over 10 secs etc?

Best, Randall

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0