CodeKeyer
CodeKeyer

Reputation: 631

Batch start command not opening program

When I enter the following from a command prompt:

start myprog.exe

It opens the program in a command window, but it doesn't start the actual program itself.
Does anyone know what I'm doing wrong with this?

Upvotes: 2

Views: 5644

Answers (2)

Endoro
Endoro

Reputation: 37569

try this:

start /b "" "myprog.exe"

See start /? for more help.

Upvotes: 2

Dave Anderson
Dave Anderson

Reputation: 12284

You don't need START just have myprog.exe, make sure that the program can be found. Put the directory for it in the PATH environment variable if necessary.

If you want to continue processing more commands in the batch file use the /B switch for START, see syntax here Microsoft DOS start command.

Upvotes: 1

Related Questions