Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 18767

Eng :: RE: How to put a FOR loop command on the button bar?

$
0
0
Author: sorcar
Posted: Mon Apr 11, 2016 9:43 am (GMT -6)

Quote:
Silly Me!


Stephan2 Dear!: I was looking for the very solution that you gave me by being "silly". I wanted the filenames to be inserted at the bottom of each selected file (not to a file named ALL.txt, sorry for not being clear). I could (kind of) fix this by changing the parameter to:

Code:
FOR /F "tokens=*" %%A IN ('TYPE "%F"') do @ECHO %%~nxA >> "%O.%E"


This works only on one file at a time. But if multiple files are selected, all selected filenames get appended to the last file. How to fix this?


Viewing all articles
Browse latest Browse all 18767

Trending Articles