How to select multiple files in different folders using "Load Selection from File"

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
netsonicyxf
Junior Member
Junior Member
Posts: 6
Joined: 2021-09-01, 01:52 UTC

How to select multiple files in different folders using "Load Selection from File"

Post by *netsonicyxf »

This is the simple example, there are 4 files
C:\Users\YXF\Desktop\1\1\1.TXT
C:\Users\YXF\Desktop\1\1\2.TXT
C:\Users\YXF\Desktop\1\2\3.TXT
C:\Users\YXF\Desktop\1\2\4.TXT

Under either Ctrl-B or normal mode, I use "Load Selection from File", the file contains the following:
C:\Users\YXF\Desktop\1\1\1.TXT
C:\Users\YXF\Desktop\1\2\3.TXT

But none is selected.

So how to select multiple files in different folders using "Load Selection from File"?
Fla$her
Power Member
Power Member
Posts: 2998
Joined: 2020-01-18, 04:03 UTC

Re: How to select multiple files in different folders using "Load Selection from File"

Post by *Fla$her »

2netsonicyxf
After Ctrl+B, the path of the parent directory should be cut off in the list.
But now it's easier to load a list of necessary files via LOADLIST than to suffer with Ctrl+B.
Overquoting is evil! 👎
netsonicyxf
Junior Member
Junior Member
Posts: 6
Joined: 2021-09-01, 01:52 UTC

Re: How to select multiple files in different folders using "Load Selection from File"

Post by *netsonicyxf »

@Fla$her

I removed the path and kept the file name only, but it still doesn't work under Ctrl-B mode.
Fla$her
Power Member
Power Member
Posts: 2998
Joined: 2020-01-18, 04:03 UTC

Re: How to select multiple files in different folders using "Load Selection from File"

Post by *Fla$her »

2netsonicyxf
You don't need to cut off the entire path, but only the working directory.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: How to select multiple files in different folders using "Load Selection from File"

Post by *petermad »

This will not exactly mark the files, but a button with this command will open a search result with only the files in listfile.txt.

Code: Select all

LOADLIST drive:\path\listfile.txt
Where listfile holds the filenames with full path and drive like:
C:\Users\YXF\Desktop\1\1\1.TXT
C:\Users\YXF\Desktop\1\2\3.TXT


If you want to select files in a branch View (Ctrl+B) you can use a button with:

Code: Select all

LOADSELECTION drive:\path\listfile.txt
But then the drive and path up til and including the current path when you press Ctrl+B has to be removed from the irems in tn listfile.txt
For example:
Desktop\1\1\1.TXT
Desktop\1\2\3.TXT

if you are in C:\Users\YXF when you press Ctrl+B
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply