LOADSELECTION for FTP?

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

LOADSELECTION for FTP?

Post by *TimA »

I have a list of hundreds of files that need to be deleted from the server via FTP. I'm wondering if the new LOADSELECTION can work?
I've created a text file on my desktop with the paths from the root of the FTP, but I don't seem to be able to LOAD them to the listbox, at which point I'd just select all and delete.
(TC Version 9.50 (2020-02-05))

User avatar
petermad
Power Member
Power Member
Posts: 9360
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: LOADSELECTION for FTP?

Post by *petermad »

LOADSELECTION does not load a list of filenames. It marks filenames (that are already visible) from a list.

So if the files you want to delete are in different folders, you can try and press Ctrl+B for Branch view and then run the command:

Code: Select all

LOADSELECTION path\listfile
from a button or an external em_command that you put in your usercmd.ini file. You can not use the LOADSELECTION command from the command line.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Re: LOADSELECTION for FTP?

Post by *TimA »

Thanks for your response *petermad

I guess I misunderstood the purpose of LOADSELECTION I thought it would load the contents of a text file to the listbox. Probably because that's what I wanted to see in this new feature.

I have a list of paths to files in a text file that need to be deleted via FTP
The file delete-me.txt is contains a list of files something like
/remote-folder/path/001xyz.pdf
/remote-folder/path/002zzz.pdf
...
/remote-folder/path/250yxz.pdf

I need to load it to the FTP listbox, select all and delete.

User avatar
petermad
Power Member
Power Member
Posts: 9360
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: LOADSELECTION for FTP?

Post by *petermad »

My bad - you cannot use Branch view on an FTP site - so you can only select files in the current directory from a list.

But it is possible to select files on an FTP site via a list using the LOADSELECTION command in a button like this:

Code: Select all

TOTALCMD#BAR#DATA
LOADSELECTION
C:\mylist\LISTFILE.txt
wcmicons.dll,42
Load selection from file


-1
To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
The LISTFILE.txt should only hold filenames without path for use on an FTP site. On local harddisk the filkenames can be wit or without path.

To make the list you can mark the files an use this button:

Code: Select all

TOTALCMD#BAR#DATA
SAVESELECTION
C:\mylist\LISTFILE.txt
wcmicons.dll,43
Save selection to file


-1
License #524 (1994)
Danish Total Commander Translator
TC 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

TimA
Junior Member
Junior Member
Posts: 24
Joined: 2008-05-20, 13:46 UTC
Location: Ottawa, Canada

Re: LOADSELECTION for FTP?

Post by *TimA »

Thank you! This works perfectly for this case where all the files are in the same directory.

I'd tried loading the list.txt file from the remote root with paths, and all sorts of variations, all with the same result Couldn't find file.

Post Reply