brettc513 Posted August 16, 2007 Posted August 16, 2007 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!
Zedna Posted August 16, 2007 Posted August 16, 2007 (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 August 16, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
brettc513 Posted August 17, 2007 Author Posted August 17, 2007 Thanks for the suggestion. Oops, I meant to put it in V3
Recommended Posts