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
cm_copyFullNamesToClip-reciprocal
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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!
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
https://www.ghisler.com
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):
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 (mylistoffiles.txt) do del "%f"
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"