Shortcut for date when (re)naming directory through F7?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
yetanotherlogin
Junior Member
Junior Member
Posts: 49
Joined: 2010-03-24, 10:51 UTC

Shortcut for date when (re)naming directory through F7?

Post by *yetanotherlogin »

Hello,

I googled for it before asking, but it doesn't look it's available.

When creating a new directory through F7, is there a keyboard shortcut to add the date (preferably as YYYY-MM-DD) ?

Thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No there isn't. Either type
<[d]
yourself, or press Alt+"+" (numeric keypad) and then scroll down to the right item and press Enter.
Author of Total Commander
https://www.ghisler.com
yetanotherlogin
Junior Member
Junior Member
Posts: 49
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin »

Thanks.

If I type "<[d]" (without the quotes), it says : "Error: Directory [<[d]] not created!"

If I keep the ALT key pressed, and hit the + key on the numeric keypad, Windows just beeps without doing anything.

FWIW, I'm using 8.52a.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Create Folder with current date

Post by *Stefan2 »

You can use the new TC v9.10
viewtopic.php?t=48695

That comes with a new feature for your wish:

"New folder" (F7) can now use the same placeholders as the multi-rename tool
(e.g. date+time "<[YMD]"), and create multiple directories in one step using a counter.



For your case use: <[Y]-[M]-[D]

The next day you can find that command in the F7 history.


- - -

Maybe better create a user defined command
to execute a DOS command
to create a new file/folder with current date in current active panel.

Next you can assign them a keyboard shortcut.



 
yetanotherlogin
Junior Member
Junior Member
Posts: 49
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin »

Thanks, I'll upgrade to 9.10.
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

I can have this by default
in placeholders this format is not available and not even in the plugin


example:
Test date 2017.11.21 21.18.00

Code: Select all

[=tc.creationdate.Y.M.D h.m.s]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, just put < in front of the line, otherwise TC will create a directory which is literally named [=tc.creationdate.Y.M.D h.m.s] instead of e.g. 2013.04.08 14.57.12. But it will take the creation date of the file under the cursor!

To create a directory with the current date and time, use this instead:
<[Y].[M].[D] [h].[m].
Author of Total Commander
https://www.ghisler.com
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

:roll:
I wanted this option to appear default in the placeholder panel without rewriting it manually each time

Image: https://i.imgur.com/eQTpyQu.png
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Seems like it is time to implement a "Load/Save" function at F7 dialogue too :wink:
#5767 Personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Could we use MRT templates?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It remains in the F7 history once you have used it once...
Author of Total Commander
https://www.ghisler.com
Alexisback
Junior Member
Junior Member
Posts: 80
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback »

:shock:

I do not understand
why is the time different?

[img]http://i.imgur.com/Bxi2tLw.png[/img]
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Alexisback wrote::shock:

I do not understand
why is the time different?

[img]http://i.imgur.com/Bxi2tLw.png[/img]
You have a file with the 1hour diff because of daylight saving model
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply