Multi Commander Support Forum

Multi Commander => Feature Requests and Suggestions => Topic started by: Matthias515566 on June 18, 2018, 11:08:11

Title: Batch processing for changing Properties (Attributes/Time)
Post by: Matthias515566 on June 18, 2018, 11:08:11
Batch Creation Date=Modify Date

Today i got alot files with a wrong modify date. I needed to Change File Modify Date, it should be the same like the creation date. This operation worked not with MC. Maybe with a Multiscript. I made it with another Explorer Software.
Title: Re: Batch processing for changing Properties (Attributes/Time)
Post by: Mathias (Author) on June 18, 2018, 11:26:19
Not sure I understand.
You want the CreateDate to be set to the same as the ModifyDate ?

You can do that with MultiScript

Get all selected files and then loop over them and do
GetFileTime(..) -  filetimepart 0  (last write time)
http://multicommander.com/docs/multiscript/functions/filesystem#getfiletime
SetFileTime(..) - filetimepart 1 (create time)
http://multicommander.com/docs/multiscript/functions/filesystem#setfiletime

for the utcTime paramer use 0 ( return time in utc) , then no extra conversion are made. not needed NTFS store time in UTC