I have a .bat
script that concats some text files into one big file. I would like to have the resulting file go to the current directory instead of the hardcoded path.
Here is my script:
@echo off
:loop
if ($1) == () goto end
more +9 %1% >> %cd%\bigfile.txt
shift
goto loop
:end
I have this saved in the "Send To" folder, so I can select a bunch of files in DirectoryA, and right-click and "send to" my batch script. This works, but I want bigfile.txt to be in the same directory as all the little files. Ideas?