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

Advertisement

rainmanec
Joined:
Posts:
11
Location:
China

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!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum