Author: sorcar
Posted: Mon Apr 11, 2016 9:43 am (GMT -6)
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:
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?
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?