Folks I have a batch command that gets run, inside this file there is the following statement serverhealtcheck.bat -h0.0.0.0.1:7001 -sSVR01 -uBLOGGSJ -psecret01 -fabc.

How To Run Multiple Commands In Batch File

Just add the lines to the BAT file and they will be executed one after the other. Since you are running a second BAT file from the first, use the CALL command so that after each called BAT file executes, it will come back to the first and continue. So your bat file would look like: @echo off call serverhealtcheck.bat -h0.0.0.0.1:7001 -sSVR01 -uBLOGGSJ -psecret01 -fabc.log call serverhealtcheck.bat -h0.0.0.0.2:7002 -sSVR01 -uSMITHP -psecret02 -fabc.log call serverhealtcheck.bat -h0.0.0.0.1:7003 -sSVR01 -uWOODT -psecret03 -fmy.log Select all ~bp.

Coments are closed
Scroll to top