Wrong date of creation

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Wrong date of creation

Post by zezera »

I've been struggling to make XYplorer to show the real creation date of some files, but no success so far.

On the example below, please note that Windows Explorer shows the right date of the files (all from April 2021), but XYplorer does not.

I've researched on the forums but haven't found an answer, so I'm posting this issue here. I appreciate any help.

Image

Image

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wrong date of creation

Post by highend »

zip the smallest one, upload it somewhere (e.g. dropbox), provide a link
One of my scripts helped you out? Please donate via Paypal

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

Done. I've also included a picture of the metadata info.

https://drive.google.com/file/d/1tYQWEx ... sp=sharing

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wrong date of creation

Post by highend »

The smallest video, not a screenshot^^
One of my scripts helped you out? Please donate via Paypal

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

Sorry for the misunderstanding. I'm not permitted to share some of those videos, including the very smaller one. But there it is the smaller one I'm allowed to share, hope you don't mind. The following file is one of the files in the same folder, presenting the same issue about the creation date.

https://drive.google.com/file/d/1t_K6wF ... sp=sharing

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wrong date of creation

Post by highend »

Add a custom column for this...

Code: Select all

return property("System.Media.DateEncoded", <cc_item>);
2023-08-26_201822.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

It worked perfectly, thank you so much!

But now I have another problem, as I'm noob on this:

I want to create a custom rename command using the Date Encoded info (date and time). For the modificated date, I already know that creating the command with the pattern "<datem dd-mm-yyyy>___<datem hh_nn_ss>" will work fine. Could you, please, let me know the pattern I have to use to do exactly the same renaming, but instead taking the modification date, to take the Date Encoded you just tought me?

Sorry for my bad English, btw.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wrong date of creation

Post by highend »

What?

Do you want to set the modified date to the date of the DateEncoded property or really rename the name (and if so, how _exactly_)?
One of my scripts helped you out? Please donate via Paypal

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

I want a batch rename that rename the files I select, so the new file names will be their real date of creation.

As an example, lets take the 2 first files shown on the pics I've posted:

01 DE ABRIL (1).MOV (which creation date and time is 01/04/2021 - 14:15:39)
01 DE ABRIL (2).MOV (which creation date and time is 01/04/2021 - 14:21:24)

I need a batch rename that will rename the 2 files above to (and respectively):

01-04-2021___14_15_39
01-04-2021___14_21_24

I already know that a batch user command wich the pattern "<datem dd-mm-yyyy>___<datem hh_nn_ss>___*" will rename them to the modified date (instead the creation date you helped me to create a column for). But I don't know the parameters to rename them using that creation date.

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

*EDIT: The result names I need is actually:

01-04-2021___14_15_39.MOV
01-04-2021___14_21_24.MOV

Sorry, I've forgotten to type the extensions on the previous example.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wrong date of creation

Post by highend »

You can't use the normal batch rename feature for this (to do this in one go)...

You need a script (put it onto a button, a user defined command, in the catalog, ...):

Code: Select all

$items = <get SelectedItemsPathNames>;
    end (!$items), "No item(s) selected, aborted!";

    setting "BackgroundFileOps", 0;
    foreach($item, $items, <crlf>, "e") {
        if (exists($item) == 2) { continue; }

        $dateEncoded = property("System.Media.DateEncoded", $item);
        if ($dateEncoded == "") { continue; }

        $old = gpc($item, "base");
        $new = formatdate($dateEncoded, "dd-mm-yyyy___hh_nn_ss");
        if ($new != $old) { renameitem($new, $item); }
    }
One of my scripts helped you out? Please donate via Paypal

zezera
Posts: 7
Joined: 26 Aug 2023 18:59

Re: Wrong date of creation

Post by zezera »

Again, it worked perfectly. Thank you so much!

Post Reply