Copy list of files contained in a text file

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
gquiring
Junior Member
Junior Member
Posts: 27
Joined: 2003-02-07, 17:27 UTC
Location: Summerville, SC

Copy list of files contained in a text file

Post by *gquiring »

I would like to read a plain text file that contains file names to copy these names to another location. Is that possible?
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Copy list of files contained in a text file

Post by *Gral »

Use "cm_LoadSelectionFromFile" command.

"Mark" - "Load selection from file" by default.
gquiring
Junior Member
Junior Member
Posts: 27
Joined: 2003-02-07, 17:27 UTC
Location: Summerville, SC

Re: Copy list of files contained in a text file

Post by *gquiring »

I'm not getting it. When I tried cm_LoadSelectionFromFile c:\list.txt

It pops open a "Open" file selection box.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Copy list of files contained in a text file

Post by *Dalai »

2gquiring
This command doesn't take any parameter, so you need to open the file via the Open file dialog. And, the selection takes place only in the current directory, meaning you can't have absolute paths in your text file. If you have, you should consider menu Net > FTP Download From List (despite its name, it can transfer files locally, too).

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
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Copy list of files contained in a text file

Post by *ghisler(Author) »

LOADSELECTION c:\list.txt
would work, but it's new in Total Commander 9.50 (currently available as a release candidate).
Author of Total Commander
https://www.ghisler.com
Post Reply