Alex Rivera | Logout

How do I launch a program from command line without opening a new cmd window?

Asked 2012-08-17T17:07:29.530
30

I'm trying to programmatically execute an external file from cmd using this command:

START "filepath"

Where "filepath" is the path of my file. It opens fine but it also open a new command prompt window.

So, which is the right command for opening an external program without opening a new window?

Edit
Report

1 Answer

29

In Windows 7+ the first quotations will be the title to the cmd window to open the program:

start "title" "C:\path\program.exe"

Formatting your command like the above will temporarily open a cmd window that goes away as fast as it comes up so you really never see it. It also allows you to open more than one program without waiting for the first one to close first.

answered 2013-06-25T13:11:52.080

Your Answer