You are not logged in.
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
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
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
It worked. Thanks for your reply!
Offline