using windows batch file to start programs on windows

If we want to start a list of programs without going to find the exe launch file, we can put the programs we want to start in a batch file, all the programs put in the batch file will be started by running this batch file. The example below demonstrates using a batch file to start windows cmd command window, calculator and notepad.

1. Create a file startProgams.bat with the contents below and save it.

::This is a comment

::Starts cmd window
Start C:\Windows\system32\cmd.exe

::Starts calculator
"C:\Windows\system32\calc.exe"

::Starts notepad
C:\Windows\system32\notepad.exe

2. Double click the file startPrograms.bat, it will launch the windows cmd command window, the calculator and the notepad.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search