Hello!
Using batch commands, I’d like to know how to add line to top and bottom of data in a file. Thanks!!!
For example, the original data is:
12345
54321
22222
33333
And I’d like it to look like this:
***New top line***
12345
54321
22222
33333
***New bottom line***
—————————-
@echo off
echo ***New top line*** > temp.txt
type myfile >> temp.txt
echo ***New bottom line*** >> temp.txt
move /y temp.txt myfile
=====================================
Helping others achieve escape felicity
M2