how to open a batch file with batch file code example
Example 1: run batch file from cmd
Command Prompt
To run a batch file with Command Prompt, use these steps.
Open Start.
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the path and name of the batch file, and press Enter:
C:\PATH\TO\FOLDER\BATCH-NAME.bat
Example 2: how to call a batch file from another batch file
REM We're working inside file1.bat
REM To start a bat file stored in the same directory use:
START file2.bat
REM if file2 is in another directory use
START path/file2.bat
Example 3: batch file cmd command
c:\
cd c:\Program files\IIS Express
start iisexpress /path:"C:\FormsAdmin.Site" /port:8088 /clr:v2.0
start http://localhost:8088/default.aspx
pause