I need some help from the experts here.
Here is what I am trying to accomplish when printing the output of the bat file:
Code: Select all
line1: Current date
line2: Current time
line3: Your number
line4: Incremental number
line5: Thanks for waiting
I have 10 text file by the name A001.txt - A010.txt
The content of the text files are:
Code: Select all
Your Number
A001 <<<< up to A010
Thanks for waiting
Code: Select all
@echo off
notepad /p A001.txt
pause
notepad /p A002.txt
pause
notepad /p A003.txt
pause
notepad /p A004.txt
pause
notepad /p A005.txt
pause
notepad /p A006.txt
pause
notepad /p A007.txt
pause
notepad /p A008.txt
pause
notepad /p A009.txt
pause
notepad /p A010.txt
pause
I have tried this method but it doesnt work:
Code: Select all
echo %date% > test.txt
Time /T >> test.txt
echo Your number >> test.txt
set /A COUNTER=COUNTER+1 >> test.txt
echo pause >> test.txt
Thanks