Start command can be used to run a command/batch file in another command window or to launch an application from command line. Below you can find the command’s syntax and some examples.
Launch another command window:
This command opens a new command prompt window.
Run a command in a separate window
This command opens a new command window and also runs the specified command. If the command is of a GUI application, the application will be launched with out any new command window.
Launch new command window and run dir command.:
Run a command in another window and terminate after command execution:
start cmd /c command
For example, to run a batch file in another command window and to close the window after batch file execution completes, the command will be:
Start cmd /c C:\mybatchfile.bat
Run the command in the same window:
Start /b command
Run a command in the background like we do using ‘&’ in Linux:
In Windows, we can do similar thing by using start command. But here it does not run in background. A new command window will be executing the specified command and the current window will be back to prompt to take the next command.
Start command (or) Start batchfile.bat
Launch a GUI application:
For example, to launch internet explorer, we can use the below command.
Open windows explorer in the current directory: