Is there a way to process the commands in the order of the files I choose?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

There are files sorted in ascending order of file name as shown below.

1001.pdf
1002.pdf
1003.pdf
1004.xlsx
1005.xlsx
1006.xlsx




I chose this in the following order.

1001.pdf
1004.xlsx
1002.pdf
1005.xlsx
1003.pdf
1006.xlsx


And when I try to rename (cm_RenameOnly ,1002, Rename (Shift + F6))
It is supposed to be renamed in sorted order, not in the order I choose.

Similarly, if I try to attach a file in the Microsoft Outlook program,
Files are attached in the order sorted on the screen instead of being attached in the selected order.

I want it to be processed in the order of files selected in Total Commander.
Is there any way to do this?

Or should I make a suggestion to Christian Ghisler?
User avatar
vdijken
Member
Member
Posts: 181
Joined: 2016-07-30, 14:07 UTC
Location: The Netherlands

Re: Is there a way to process the commands in the order of the files I choose?

Post by *vdijken »

I don't see the significance of this request. The order how the rename or attachment is done does not change the result.
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

My Total Commander is now sorted by file extension in ascending order.



I want to rename the file below to something like this:

1001.pdf ---> a.pdf
1002.pdf ---> c.pdf
1003.pdf ---> e.pdf
1004.xlsx ---> b.xlsx
1005.xlsx ---> d.xlsx
1006.xlsx ---> f.xlsx








In order to easily change the file name in alphabetical order, the files were selected in the following order.

1001.pdf (1st choice) ---> a.pdf
1004.xlsx (2nd choice) ---> b.xlsx
1002.pdf (3rd choice) ---> c.pdf
1005.xlsx (4th choice) ---> d.xlsx
1003.pdf (5th choice) ---> e.pdf
1006.xlsx (6th choice) ---> f.xlsx



And
Use the cm_RenameOnly internal command to rename the file.


If I rename the files in the order in which they were selected,
I can easily rename it by typing (a,b,c,d,e,f) in alphabetical order.


However

I mentioned that my Total Commander is sorted by file extension in ascending order.

So I have to rename it to a,c,e,b,d,f to get the result I want.

1001.pdf ---> a.pdf
1002.pdf ---> c.pdf
1003.pdf ---> e.pdf
1004.xlsx ---> b.xlsx
1005.xlsx ---> d.xlsx
1006.xlsx ---> f.xlsx



This method is inconvenient to rename.
I can only rename files in the order sorted in Total Commander.
But I wish I could rename them in the order of the files I chose.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Hacker »

kms820619,
That is currently not possible.

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
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Gral »

Although for me, a better method would be to load the files into the "Multi-Rename Tool" and use direct filename editing in a good text editor, you can achieve what you want with new TC 10.00 (in beta 4 version now) and it's new feature LOADLIST.

1. create file list with desired order, you can use full paths, relative paths, or just names if all in current directory.
2. create button with these settings
Command: LOADLIST
Parameters: %P%N
Icon file: %COMMANDER_EXE%
(choose icon)

or right click on empty space on buttonbar and paste this code:

Code: Select all

TOTALCMD#BAR#DATA
LOADLIST
%P%N
%COMMANDER_EXE%,35



-1

3. Load list into panel using newly created button.

Note: you can get this way only full paths regardless of content of list file
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Dalai »

2Gral
No need to use TC 10. The list in the MRT can be sorted by drag'n'drop.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Horst.Epp »

Dalai wrote: 2021-04-06, 16:59 UTC 2Gral
No need to use TC 10. The list in the MRT can be sorted by drag'n'drop.

Regards
Dalai
A very useful tip.
I didn't know or remember this.
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
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Gral »

Dalai wrote: 2021-04-06, 16:59 UTC 2Gral
No need to use TC 10. The list in the MRT can be sorted by drag'n'drop.

Regards
Dalai
Note that kms820619 was looking for the possibility of renaming directly in file panel, so i did not consider using MRT, what i personally prefer.
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

Dalai wrote: 2021-04-06, 16:59 UTC 2Gral
No need to use TC 10. The list in the MRT can be sorted by drag'n'drop.

Regards
Dalai


MRT?
Could you please explain in more detail what it is?
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

Horst.Epp wrote: 2021-04-06, 17:45 UTC
Dalai wrote: 2021-04-06, 16:59 UTC 2Gral
No need to use TC 10. The list in the MRT can be sorted by drag'n'drop.

Regards
Dalai
A very useful tip.
I didn't know or remember this.


MRT? Useful tip?
Could you please explain in more detail what it is?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Is there a way to process the commands in the order of the files I choose?

Post by *petermad »

2kms820619
MRT = Multi-Rename Tool (Ctrl+M) or via menu: "Files" -> "Multi-rename Tool"2kms820619
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *Gral »

2 kms820619
1. Select files you want to rename
2. Invoke MRT - press CTRL+M
3. Drag and drop files to achieve the desired order.
4. Now you can rename all files at once by defining rule - e.g., write [Ca] in "Rename mask: file name" field.
Look here http://gral.y0.pl/tc/MRT.PNG
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

Gral wrote: 2021-04-07, 16:30 UTC 2 kms820619
1. Select files you want to rename
2. Invoke MRT - press CTRL+M
3. Drag and drop files to achieve the desired order.
4. Now you can rename all files at once by defining rule - e.g., write [Ca] in "Rename mask: file name" field.
Look here http://gral.y0.pl/tc/MRT.PNG


I understand how to use Total Commander.
Thank you very much for your kind explanation.
User avatar
chandragor
Member
Member
Posts: 118
Joined: 2005-06-01, 10:10 UTC
Location: Italy

Re: Is there a way to process the commands in the order of the files I choose?

Post by *chandragor »

Alternatively, you can move a selected file up or down by pressing shift+up/down arrow
Happy owner of license #12422 since 1997
kms820619
Junior Member
Junior Member
Posts: 20
Joined: 2021-03-15, 00:49 UTC

Re: Is there a way to process the commands in the order of the files I choose?

Post by *kms820619 »

chandragor wrote: 2021-04-09, 11:49 UTC Alternatively, you can move a selected file up or down by pressing shift+up/down arrow
Wow !!
That's a very good way.
Post Reply