How to get the value returned after a command is executed?
For example, there is a file named a.txt with content:
1
Using the type command:
C:\>TYPE A.TXT
C:\>1
How to get the 1 displayed after the type command is executed in a batch script and add 1 to it, then save it into a.txt, that is, the content of a.txt becomes 2.
C:\>TYPE A.TXT
C:\>2
Environment requirements: DOS6.22 or DOS7.1
Thank you!
For example, there is a file named a.txt with content:
1
Using the type command:
C:\>TYPE A.TXT
C:\>1
How to get the 1 displayed after the type command is executed in a batch script and add 1 to it, then save it into a.txt, that is, the content of a.txt becomes 2.
C:\>TYPE A.TXT
C:\>2
Environment requirements: DOS6.22 or DOS7.1
Thank you!


