Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to set the lastwritetime attribute of a file or directory?

There's no better way currently.
rainmanec

How to set the lastwritetime attribute of a file or directory?

Hi martin:
I want to set the LastWriteTime property of the remote file or directory, But I have not found any method available in NET assembly, so I use the following command
ExecuteCommand("MFMT 20200529062256 logo.png")

However, this method has a disadvantage that the local time zone and the server time zone cannot be kept the same.
Do you have a better way and How to detect time zone offset ?
Thanks!