Changing last write time of a file on FTP server

How  to change the last write time of a file on FTP server. Is there any function similar to SetFileTime().
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
Not that I know of.

You have asked a similar question recently.  Exactly what are you trying to achieve.  (Not modifying the file write time please).
In the other question I made the following comment

<Is this to check if a newer(modified) version is available?  If it is you may want to check versions instead of date/time stamps.>  

If the files don't have a version then create another (text) file that contains the info you require to check.  Instead of checking the local and FTP file time stamps compare the values in this file with those of the local files - that should be independant of time zones / time settings.
stellarguyAuthor Commented:
Hi Andy thanks for replying. Actually i am uploading files(all types) on Ftp server and i want that only those files should be uploaded which are modified after previous uploading. For that i am compairing their date/time stamps.
As you are saying, we can do it by compairing versions. Can you tell me a little bit more about compairing versions.
AndyAinscowFreelance programmer / ConsultantCommented:
I was thinking you required the download (eg autoupdate of software installed on client PC's).

Is it a real problem to upload ALL files?  (I guess it is else you wouldn't be asking the question)

Time stamps - these you have limited control over and you have no control over client PC clock settings or the FTP server clock settings.
Versions.  You can embed a versions number in an exe file for instance,
Now this versions number is independant of any time stamp, two files with version would be the same.
As I said I was thinking you required the download, so your software would get the version number (internally) and get the version number from the FTP server (either directly <if possible> or via a third file which contains of list of version numbers - ABC.exe, xyz.exe, pqr.txt - note this method copes with files that don't support a version number internal to the file).  Now your software checks is the version on the FTP server newer, if yes then download)
You can do exactly the same for uploading.  Then upload the newer 'version text' file

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.