Customizing " - Copy (1)" file name suffix

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
netchain
New Member
New Member
Posts: 1
Joined: 2025-04-25, 23:54 UTC

Customizing " - Copy (1)" file name suffix

Post by *netchain »

One of the things I do many times per day is making backup copies of the files I'm working on. The fastest method is Ctrl+C and Ctrl+V on a file, which creates a copy with added " - Copy (n)" in the file name.

I know, it's the Windows Explorer which is part of Windows OS which is doing it and it has nothing to do with Total Commander. I just wish there was a way of doing the same thing using a shortcut in Total Commander for the purpose of being able to customize the file name of the copied file.

I prefer the following format. If the name of the file is "MyFile.xyz", then I usually rename to "MyFile.001.xyz", then "MyFile.002.xyz" and so on. This way when all files are sorted by the file name (or extension as I always have) all files with the same name are grouped together, where the Windows method makes a mess, like:
MyFile - Copy (3).xyz
MyFile - Copy (2).xyz
MyFile - Copy (11).xyz
MyFile - Copy (10).xyz
MyFile - Copy.xyz
MyFile.xyz
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Customizing " - Copy (1)" file name suffix

Post by *Dalai »

Well, you could use Shift+F5 instead of Ctrl+C/+V to create a copy. TC then provides a dialog in which the copy's name can be entered, with the name (without extension) already preselected (if this is set in TC's configuration).
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Customizing " - Copy (1)" file name suffix

Post by *hi5 »

Not saying you should, but have you considered copying to a backup folder? That way your work folder stays clean and the copies are not in the way so to speak.

I use this https://www.ghisler.ch/board/viewtopic.php?t=80890 setup, and I have it assigned to a button and a user command so I can use a hotkey as well. If the backup folder doesn't exist yet, it is created. You can also leave out the backup folder and just leave T="%P\" to keep it in the same folder.
"
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Customizing " - Copy (1)" file name suffix

Post by *white »

And perhaps consider using %$DATE% variants to use a timestamp in the name instead of a sequence number. For example:

Code: Select all

Command: cm_Copy
Parameters: /GT="%O %|$DATE|.%E"
Post Reply