≡ Menu

CMD start command

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 .
5 comments… add one
  • Firefox264

    Thank you , very useful :)

  • saeed

    hello
    how Add Command to Command Prompt?
    Do I have a file where I copy To Windows?
    If you Answer Is yes , Where do I file copying?

    • Deurklink

      Hello saeed
      ik you want to add commands to CMD you can put the files in the folder: C:\Windows\System32. and to use the command you type the file name in cmd (dont type the file extention).

  • Gopi

    Hello
    1. I want to start a SSL command prompt
    2. Launch a new command prompt and run some commands
    3. Now I need to run commands on First opened command prompt.

    I want to write batch script for this one. Up to step 2, I am okay, but step 3 was not running on first opened cmd.

    for step 2 I created batch file and calling from step 1 batch file. Now step 3 was not running?

  • John

    Many thanks for the quick and accurate syntax

Cancel reply

Leave a Comment