Page 1 of 1

Customizing " - Copy (1)" file name suffix

Posted: 2025-04-26, 00:08 UTC
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

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

Posted: 2025-04-26, 10:00 UTC
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).

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

Posted: 2025-04-26, 21:04 UTC
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.
"

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

Posted: 2025-04-26, 23:04 UTC
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"