Jump to content

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!

Link to comment
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
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...