I've added a Batch file to the right click "send to" menu which opens a command prompt in the current directory. The command to concatenate all of the .txt files in that folder and any sub folders does not execute properly when used from the batch file (produces a 0 byte file called output.txt), but does work properly if I type it into the cmd prompt.
%~d1 cd "%~p1" start cmd.exe /K "for %f in (*.txt) do type "%f" >> output.txt"
Windows 10. Any help is appreciated. Thanks.
edit look here, double the tuples for some reason: https://stackoverflow.com/questions/11711569/windows-batch-file-concatenate-all-files-in-subdirectories