I have been following the examples in here and they are great. I am stuck with one batch file though and am wondering if you could help me.
I need a batch file that adds two lines to a file with an .inp extension. There are 1000 different .inp files and the two lines for each are different. I have written the script for the first 5 but would rather automate the remaining 995 as opposed to cut and past and replace.
Here is what I have:
echo DATA: FILE IS REP1.DAT; >>FS_1.INP
echo SAVEDATA: FILE IS REPFS1.DAT; SAVE = FSCORES; >>FS_1.INP
NOTE: This is the two lines for the first file.
echo DATA: FILE IS REP2.dat; >>FS_2.inp
echo SAVEDATA: FILE IS REP2FS.dat; SAVE = FSCORES; >>FS_2.inp
NOTE: This is the two lines for the second file.
I need it to go all the way to:
echo DATA: FILE IS REP1000.DAT; >>FS_1000.inp
echo SAVEDATA: FILE IS REP1000FS.dat; SAVE = FSCORES; >>FS_1000.inp
Each of the two lines has a number that increases by 1 for each file. So
REP1000.DAT goes from REP1.dat to REP1000.dat
FS_1000.inp goes from FS_1.inp to FS_1000.inp
REP1000FS.dat goes from REP1.dat to REP1000.dat
Any thoughts? Thanks.