Hi,
I would like to suggest to add a command on File.SetAttributes to update the file's date. The command would be something like this:
-- change the last date the file was written, in ISO format
File.SetAttributes("\\MyFile.doc", {WriteDateISO="2011-06-18T14:55:05"} )
The reason for requesting this because in my FTP sync program, that synchronizes files from our ftp to a local drive, the file's date is important to retain his date after download as this will be used later for comparison. Sometime ago, I believe, Ulrich, suggested to run touch.exe to update the file's date. It worked well but recently, some Mac user, where they emulate to run windows on mac, the touch.exe failed to work as it's not a registered program.
By the way, AMS already have the command to get the file's date using File.GetAttributes but the set is not implemented.
Thanks,
M. Adea
Geneva
I would like to suggest to add a command on File.SetAttributes to update the file's date. The command would be something like this:
-- change the last date the file was written, in ISO format
File.SetAttributes("\\MyFile.doc", {WriteDateISO="2011-06-18T14:55:05"} )
The reason for requesting this because in my FTP sync program, that synchronizes files from our ftp to a local drive, the file's date is important to retain his date after download as this will be used later for comparison. Sometime ago, I believe, Ulrich, suggested to run touch.exe to update the file's date. It worked well but recently, some Mac user, where they emulate to run windows on mac, the touch.exe failed to work as it's not a registered program.
By the way, AMS already have the command to get the file's date using File.GetAttributes but the set is not implemented.
Thanks,
M. Adea
Geneva
Comment