Archived Forum Post

Index of archived forum posts


Get File Create Time on FTP Server?

Sep 25 '12 at 12:51

I use the FTP2 control with Visual FoxPro and am looking for a simple way to obtain the creation date of a file on a remote server. Was looking through the VFP examples and could not find a way to compare 2 files, one local and 1 remote in order to determine if the remote one is newer and therefore download it overwriting the local one. I’d imagine this is a pretty common usage for updating programs via FTP. I could download it and then compare but there must be a way to get just the file create date and time?


See the online reference documentation. Specifically, see the GetCreateTimeByName method here: