I've asked many batch processing experts, but it's really too difficult to achieve in pure DOS. findstr can't be used. Everyone, please help. Is it possible to achieve it with the help of third-party tools? The simple introduction is as follows:
In pure DOS, running a certain DOS program Gdisk, the screen outputs text content as follows
AAA BBB CCC // The first line
xxx yyy zzz // The second line
The above letters are all substitutes, just roughly output like this (all the output strings are displayed in the pure DOS screen, no text file is generated)
Now it is required to judge the above output of Gdisk. If "A01" or "A02" appears in the second line, execute the statement go1; if not, restart
Probably like this. Can you put forward some ideas? Do you need to use third-party tools like input, askenv, aset, xset, strings, wbat, be? Can you give the general writing of the batch processing?
[ Last edited by xiaofking on 2008-1-14 at 01:20 PM ]
In pure DOS, running a certain DOS program Gdisk, the screen outputs text content as follows
AAA BBB CCC // The first line
xxx yyy zzz // The second line
The above letters are all substitutes, just roughly output like this (all the output strings are displayed in the pure DOS screen, no text file is generated)
Now it is required to judge the above output of Gdisk. If "A01" or "A02" appears in the second line, execute the statement go1; if not, restart
Probably like this. Can you put forward some ideas? Do you need to use third-party tools like input, askenv, aset, xset, strings, wbat, be? Can you give the general writing of the batch processing?
[ Last edited by xiaofking on 2008-1-14 at 01:20 PM ]



