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

前端 未结 9 851
走了就别回头了
走了就别回头了 2020-12-01 16:00

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

START \"filepath\"

Where \"filepat

9条回答
  •  攒了一身酷
    2020-12-01 16:55

    Just remove the double quote, this works in Windows 7:

    start C:\ProgramFiles\folderName\app.exe
    

    If you want to maximize the window, try this:

    start /MAX C:\ProgramFiles\folderName\app.exe
    


    Your command START "filepath" will start a command prompt and change the command prompt title to filepath.

    Try to run start /? in windows command prompt and you will get more info.

提交回复
热议问题