You can use the commands below in a file .bat
.
Creating archive of batch commands .bat
:
1. Open Notepad and copy the code below.
2. Save the file and close the Notepad.
3. Rename the file you just saved by changing the extension to .txt
for .bat
.
4. Now just make two clicks on the file .bat
to execute him.
To join the files .txt
they must be in the same
file directory .bat
.
Code:
del juntos.txt
for %%I in (*.txt) do (
type %%I >> juntos.tmp
echo. >> juntos.tmp
)
ren juntos.tmp juntos.txt
EDIT
To move the final file to another directory (folder), include the code below at the end of the .bat
:
move juntos.txt D:\nome_da_pasta/
If it is a subfolder from which the .bat
is, enough:
move juntos.txt nome_da_pasta/
How are you reading these files? Post the code.
– Marcelo de Andrade
you can add & to get the break... without seeing your code is hard to help but would be more or less: echo dog & echo cat & echo zebra
– Leandro Angelo