cm_copyFullNamesToClip-reciprocal

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
mirosnik
Junior Member
Junior Member
Posts: 2
Joined: 2003-08-16, 15:06 UTC

cm_copyFullNamesToClip-reciprocal

Post by *mirosnik »

Ladies and Gents,

Is there any command doing the job reciprocal to that of cm_copyFullNamesToClip? For instance, I performed a search for duplicates with TC and fed the result to the listbox. Then I exerted cm_copyFullNamesToClip, and filtered (with some editor-macro) the list to leave just the files to be deleted. At this point I would be interested to load the new list back to TC (in order to quickly delete the files). What would you, guys, advise?

Thanks a lot,
Igor
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

You could use the editor to put a "del " at the beginning of each line and then run it as a batch file.

:)

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, unfortunately there isn't. But it's normally not needed - just put a
del
command in front of the names, rename the file to *.bat and double click it to delete the files!
Author of Total Commander
https://www.ghisler.com
User avatar
zweistein
Junior Member
Junior Member
Posts: 38
Joined: 2003-08-08, 09:49 UTC
Location: Gent, Belgium

Post by *zweistein »

Or, if you're on Windows NT, 2000 and probably Xp, you can exploit the much smarter command processor (not that it comes close to bash or even sh):

Code: Select all

for /F "delims=" %f in (mylistoffiles.txt) do del "%f"
The delims option is there to accept file names with spaces in them.

If you record that in a .bat file (I prefer to name such "smarter" batch files .cmd), you have to double the %'s. For instance:

Code: Select all

for /F "delims=" %%f in (%1) do del "%%f"
Post Reply