Sign in to follow this  
Followers 0
brettc513

Need Help with a script.

3 posts in this topic

Here is the situation... I have users downloading data out of an application into a text file then after they finish, I FTP them up to my corporate site. Is there some way I can detect when the file is no longer in use so the I can transfer it? I have pretty much everything else scripted, just need a way to wait until the download finishes before FTPing it up. Any help will be greatly appreciated!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Here is the situation... I have users downloading data out of an application into a text file then after they finish, I FTP them up to my corporate site. Is there some way I can detect when the file is no longer in use so the I can transfer it? I have pretty much everything else scripted, just need a way to wait until the download finishes before FTPing it up. Any help will be greatly appreciated!

Maybe in While loop try to open file (by CreateFile API) with nonshared and/or write access

If Open file will be successfull then ExitLoop and make your FTP upload.

BTW: Why is this in V2 forum?

Edited by Zedna

Share this post


Link to post
Share on other sites

Thanks for the suggestion. Oops, I meant to put it in V3 :)

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0