#1 2021-02-18 23:18

Arien
Member
Registered: 2021-02-18
Posts: 3

Why cannot I use create date as shown in Explorer?

Left_pane_Explorer_Right_pane_Renamer

I would like to rename my MOV files with the dates that they are created. Somehow Renamer cannot read the date where Explorer can.

I uploaded an image where Explorer shows the date I want to use, but I cannot find the rule that uses this date. I tried EXIF (works with pictures), File Create Date (only shows the date that I sent the movies to the computer).

What to do?

20210219: I get some results by using MediaInfo.exe

Last edited by Arien (2021-02-19 22:42)

Offline

#2 2021-02-19 23:19

Arien
Member
Registered: 2021-02-18
Posts: 3

Re: Why cannot I use create date as shown in Explorer?

I used the code from the WIKI about the MediaInfo.

const
  MediaInfoExe = 'C:\Program Files (x86)\MediaInfo_CLI_20.09_Windows_x64\MediaInfo.exe';
  OutputParameter = 'General;%Encoded_Date%';

var
  Command: WideString;
  Output: String;

begin
  Command :=
    '"' + MediaInfoExe + '"' +
    ' --output="' + OutputParameter + '"' +
    ' "' + FilePath + '"';
  if ExecConsoleApp(Command, Output) = 0 then
    FileName := WideTrim(OemToWide(Output)) + '_' + FileName;
end.

This script inserts a datetime: UTC 2021-02-01 10:25:01

I need the datetime in the following format yyyymmdd_hh-nn-ss plus one hour timedifference with UTC (Amsterdam time zone). I do not know Pascal Script.

Help is much appreciated to get the datetime in the right format.

Last edited by Arien (2021-02-19 23:21)

Offline

#3 2021-02-20 11:02

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Why cannot I use create date as shown in Explorer?

You can adjust the date format and add an hour using the Reformat Date rule, as follows:

> Convert to "yyyymmdd_hh-nn-ss" from "yyyy-mm-dd hh:nn:ss", whole words only, skip extension, adjust time by 1 hour.

Then, you'll just need to remove the "UTC" prefix with a separate rule.

Offline

#4 2021-02-20 22:20

Arien
Member
Registered: 2021-02-18
Posts: 3

Re: Why cannot I use create date as shown in Explorer?

It worked. Thanks for your reply!

Offline

Board footer

Powered by FluxBB