Jump to content
Sign in to follow this  
brettc513

Need Help with a script.

Recommended Posts

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

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...