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

English support forum

Moderators: Stefan2, white, sheep, Hacker

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

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

Post by *yetanotherlogin » 2017-11-20, 09:08 UTC

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: 36549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-11-20, 09:17 UTC

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
http://www.ghisler.com

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

Post by *yetanotherlogin » 2017-11-20, 09:44 UTC

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: 2206
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Create Folder with current date

Post by *Stefan2 » 2017-11-20, 09:47 UTC

You can use the new TC v9.10
https://ghisler.ch/board/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: 43
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin » 2017-11-20, 09:48 UTC

Thanks, I'll upgrade to 9.10.

Alexisback
Junior Member
Junior Member
Posts: 46
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback » 2017-11-21, 18:29 UTC

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: 36549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-11-21, 22:06 UTC

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].[s]
Author of Total Commander
http://www.ghisler.com

Alexisback
Junior Member
Junior Member
Posts: 46
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback » 2017-11-21, 22:21 UTC

: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: 3395
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard » 2017-11-21, 22:29 UTC

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: 11061
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker » 2017-11-21, 23:11 UTC

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: 36549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2017-11-22, 08:29 UTC

It remains in the F7 history once you have used it once...
Author of Total Commander
http://www.ghisler.com

Alexisback
Junior Member
Junior Member
Posts: 46
Joined: 2016-10-26, 20:04 UTC

Post by *Alexisback » 2017-11-22, 14:08 UTC

: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: 3138
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp » 2017-11-22, 14:41 UTC

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 10 Home x64 October 2018 Update
Version 1809 (OS Build 17763.194)
TC 9.21a x64 and x86, Everything 1.4.1.921 (x64)

Post Reply