How to make a scanner that scans a batch file?
Moderator: DosItHelp
-
- Posts: 2
- Joined: 29 Oct 2019 08:38
How to make a scanner that scans a batch file?
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?
Try to use FINDSTR. It supports multiple search patterns.
Steffen
Steffen
-
- Posts: 239
- Joined: 04 Mar 2014 11:14
- Location: germany
Re: How to make a scanner that scans a batch file?
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
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
-
- Posts: 2
- Joined: 29 Oct 2019 08:38
Re: How to make a scanner that scans a batch file?
Thanks everyone for the help !