Page 1 of 1
How to make a scanner that scans a batch file?
Posted: 16 Apr 2020 10:45
by CrossAlex21
How do I make a scanner that scans for specific strings in a batch file? I though on using "find" command but I don't know if it can use more than just one argument/string.
Re: How to make a scanner that scans a batch file?
Posted: 16 Apr 2020 13:13
by aGerman
Try to use FINDSTR. It supports multiple search patterns.
Steffen
Re: How to make a scanner that scans a batch file?
Posted: 17 Apr 2020 11:59
by pieh-ejdsch
A simple first
checkCMD.cmd that was started, which was created to find corresponding commands, variables, brackets, parameters etc. in batch files, is here.
The output contains the numbers and the line found.
This script can be easily expanded and new parameters and corresponding search terms can be added.
An expanded (but not completed) version of
checkCMD.cmd is also available.
This can also output the bracket level. Small tools for debugging the checkCMD.cmd are also integrated in this.
Which you can use in your own batch for debugging
Help in German is included.
No English help is included yet. Maybe I'll still do it.
usage:
checkCMD.cmd /?
checkCMD.cmd myBatchfile.bat
checkCMD.cmd myBatchfile.bat local call goto parenth ForVars Redirect
Re: How to make a scanner that scans a batch file?
Posted: 19 Apr 2020 09:34
by CrossAlex21
Thanks everyone for the help

!