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

Advertisement

rainmanec
Joined:
Posts:
9
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

martin
Site Admin
martin avatar
Joined:
Posts:
33,710
Location:
Prague, Czechia

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

There's no better way currently.

Reply with quote

Advertisement

You can post new topics in this forum