CMD start command

by admin on September 25, 2011

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:

start cmd

This command opens a new command prompt window.
Run a command in a separate window

Start command

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.

Examples:
Launch new command window and run dir command.:

Start dir

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:

Start  application

For example, to launch internet explorer, we can use the below command.

Start iexplore

Open windows explorer in the current directory:

start .

{ 1 comment… read it below or add one }

Firefox264 October 13, 2011 at 4:41 am

Thank you , very useful :)

Reply

Leave a Comment

Previous post:

Next post: