Rename files adding creation date in filenames

Support for xplorer² free lite version

Moderators: fgagnon, nikos, Site Mods

Post Reply
Patriot
New Member
Posts: 3
Joined: 2011 Jul 07, 10:16

Rename files adding creation date in filenames

Post by Patriot »

Hi,
I want to rename files using specific pattern with creation date in filename (or modification):

filename.txt ---  CATEGORY filename 2011-07-07 100528.txt


I have tride this variables:

CATEGORY $B $D.$E
filename.txt --- CATEGORY filename 2011-07-07 10.05.28.txt

CATEGORY $B $d.$E
filename.txt --- CATEGORY filename 2011-07-07.txt

CATEGORY $B ${date creation}.$E
filename.txt --- CATEGORY filename 2011-07-07 10:05:28.txt
after showing error (illegal character)
CATEGORY filename 2011-07-07 10_05_28.txt

Usual for rename files I use Bulk Rename Utility or Total Commander, which has many option for this purpose. I think it will be better if I could use only single variables (exp. $Y->2011). I don't know how to make own pattern in xplorer2 like:

YYYY-MM-DD hhmmss
YYYY-MM-DD_hh_mm_ss
YYYY-MM-DD-hh-mm-ss

Thanks for advice
User avatar
nikos
Site Admin
Site Admin
Posts: 15806
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

$D inserts the date with whatever formatting you have setup in your windows control panel. Also see this
http://www.zabkat.com/blog/wink/id3.htm
Patriot
New Member
Posts: 3
Joined: 2011 Jul 07, 10:16

Post by Patriot »

$D inserts the date with whatever formatting you have setup in your windows control panel.
Method with the change of date and time display in the system is good. But it has one disadvantage: changes affects everything, such as displaying the system clock (I would like to keep separator ":" in the tray), displaying file properties etc.
I know that you can use the columns name, but I see no possibility to use it in this case (without changing the system date and time).

Making changes in the parameters, would provide greater opportunities to create own patterns, such as:
$ D-> $Y-$M-$D$ h$m$s
That would be the date the file was created (there could be problem to differentiate accessed, created, modified).
User avatar
nikos
Site Admin
Site Admin
Posts: 15806
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

it is also possible to modify the date as it is used inside xplorer2 only by editing the szCustomDateFormat registry setting in xplorer2
Patriot
New Member
Posts: 3
Joined: 2011 Jul 07, 10:16

Post by Patriot »

In xplorer2 lite
HKEY_CURRENT_USER\Software\ZabaraKatranemia Plc\xplorer2

szCustomDateFormat=yyyy-MM-dd

szCustomTimeFormat=HHmmss

New format for date and time in xplorer2:
2011-07-09 180756
Thanks for solution
Post Reply