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))
LOADSELECTION for FTP?
Moderators: white, Hacker, petermad, Stefan2
Re: LOADSELECTION for FTP?
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:
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.
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
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
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
Re: LOADSELECTION for FTP?
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.
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.
Re: LOADSELECTION for FTP?
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:
To make the list you can mark the files an use this button:
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
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 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".
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 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
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
Re: LOADSELECTION for FTP?
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.
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.