Open TC with file list?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Open TC with file list?

Post by *Beano »

Is it possible to open TC with a file list via the command line?

For example:
totalcmd.exe /FL=c:\filetolist.txt

Where filetolist.txt contains a list of files.

I looked in the help file but could not find any info about it.

Thanks in advance.

.B
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You could use a packer plugin like diskdir or diskdir extended, create a list file with it, and then pass that to TC as a parameter.
Author of Total Commander
https://www.ghisler.com
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Post by *Beano »

ghisler(Author) wrote:You could use a packer plugin like diskdir or diskdir extended, create a list file with it, and then pass that to TC as a parameter.
I know how to make the file list, the question is, how do I pass the list to TC via a commandline ?
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Post by *Beano »

I tried using the DistDirExtended plugin to open a file list - it works but not as I wanted.

DiskDirExtended opens lists as a hierarchical structure (files within folders) and not as a plain file list like when adding a search result to panels within TC ("Feed to listbox" button in TC search).

Example, if I have the following items in a LST file:

c:\Folder1\Some file A.txt
c:\Folder1\Some file B.txt
c:\Folder1\Some file C.txt
c:\Folder2\Some file D.txt
c:\Folder2\Some file E.txt
c:\Folder2\Some file F.txt

TC opens it as a structure with Folder1 and Folder2 in the root with two files in each - and not showing the files a plain list without folders.

Is there a way to force this functionality with TC and/or DiskDirExtended or other plugin?
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Use "Branch View" ( CTRL + B ) before creating or after loading file list.
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Post by *Beano »

Thanks but still not what I am looking for :(

I want the files to be listed as described above (a plain file list which TC aparently allready is able to do via the search dialog) and not as a LST pseudo-archive.

The DiskDir/DiskDirExtended method is very limited since the list is treated as a archive and viewing/opening files are first unpacked (=moved to temp directory from original location) instead of just opening the existing files. For large files, this is useless for me.
I basicly need to be able to delete/copy/move/view files just like normal files in a TC list.

Unless there is a real solution I have overlooked, consider this a feature request :)
Gauner
Junior Member
Junior Member
Posts: 59
Joined: 2004-08-06, 12:01 UTC
Location: Berlin

Re: Open TC with file list?

Post by *Gauner »

I want to join this feature request. Ich have excatly the same need: i have a list of files, generated by unix' file command, and want to show these files inside Totalcommander, the same way, as if TC had found them and "fed to listbox". That way, I could preview them with Strg+Q, move, delete them...
Is there any progress or workaround in the meantime?
If someone asks, why not find the files with total commander? Because they are remote and I must generate the list on the remote headless machine, otherwise it takes very long.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Open TC with file list?

Post by *ghisler(Author) »

This is supported since Total Commander 10.52:
C:\PATH\TOTALCMD.EXE LOADLIST:c:\path\listfile.txt
The list file must contain one file name per line, either an absolute path, or relative to the list file location.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: Open TC with file list?

Post by *tuska »

Try it with this button:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /O /T /S LOADLIST:C:\FileToList.txt

wciconex.dll,3
%COMMANDER_EXE% /O /T /S LOADLIST:C:\FileToList.txt|https://www.ghisler.ch/board/viewtopic.php?t=29837|Open TC with file list?|Output on separate tab "Search result:" ("Feed to listbox")


-1
- OR -
%COMMANDER_EXE% /O /T /S LOADLIST:"C:\My Test\FileToList.txt"
Note "" for space(s).
Create a Button in the Buttonbar (copy/paste CODE)
  1. Click on "SELECT ALL" (to the right of CODE:), then press CTRL+C (copy to clipboard).
  2. Right-click on any place in the button bar, then click on "Paste".
     ⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
  3. Option1: Point to the new button (slightly longer): 'Tooltip' is shown (-> description to the button).
                  A maximum of 259 characters is allowed for the tooltip. | = create line break, || = create | as separator character.
  4. Option2: Button bar - "Tooltip" field: A single space deactivates the display of the tooltip.
                  If the "Tooltip" field is empty, the content of the "Command" field is displayed.
  5. Option3: See FAQs and explanation: Button-code (TOTALCMD#BAR#DATA)  <-- <Ctrl+click on the link...>
C:\FileToList.txt

Code: Select all

C:\Folder1\Some file A.txt
C:\Folder1\Some file B.txt
C:\Folder1\Some file C.txt
C:\Folder2\Some file D.txt
C:\Folder2\Some file E.txt
C:\Folder2\Some file F.txt
HISTORY.TXT wrote:10.03.21 Release Total Commander 10.00 public beta 1
01.11.20 Added: New internal command LOADLIST listfilename loads list of files/folders from text file.
                         There must be one name per line. If no path is provided, the current directory is assumed.
                         File details are retrieved automatically (32/64)
Post Reply