> upon downloading a file from an FTP Server I am trying to reset > the filedate of the local file to > that of the original, would this be possible using ICS.
ICS has two functions UpdateFileAge and UpdateUFileAge in OverbyteIcsFtpSrvT.pas to set the time stamp to local or UTC time respectively. Of course you need the correct time stamp to start with, which depends on the FTP server capabilities, some are better than others. UTC is safer since it does not change twice a year. > Also, is there a flag or such I can use to signal that the > download of the file is finished before he program tries to do > anything with the file, such as renaming it or so. Download with a changed file exetension, and only rename it to the original name once you are happy it's complete and not corrupted. The free high level TMagFtp component does all this stuff automatically, from: https://www.magsys.co.uk/delphi/magxfer.asp Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be