Author Topic: Batch processing for changing Properties (Attributes/Time)  (Read 13573 times)

Matthias515566

  • Power Member
  • ****
  • Posts: 325
    • View Profile
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.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4487
    • View Profile
    • Multi Commander
Re: Batch processing for changing Properties (Attributes/Time)
« Reply #1 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