I'd like to create a bat file to add a dash (-) onto the end of multiple files. Edit for clarification- The end of the text body of each document, not the document name.
The files are format .940, but they are openable as normal text docs. The files that need appending have various names, but my intention is to drop them all into a single folder, and run the bat on all the .940 files in the folder.
I'e tried using the script, slightly amended from another answer:
@echo off
for %%a in (.940) do type - >> %%a
But that just ends up creating a blank .940 file.. and my knowledge of CMD isn't good enough to get me any further.
Any suggestions on how to proceed?
Thanks,