1.

Solve : Running exe which has spaces in path?

Answer»

I'm trying to start an exe from a batch file. The PATH to the exe has spaces in it, so I put i in double quotes, and all that's HAPPENING is a new command prompt window is opening.
Any ideas?
Thanks!

START "C:\Path To My Exe\MyApp.exe"By definition, the START command opens a new window unless the /b switch is used. What are you expecting MyApp.exe to do? And is the path correct?

The quotes are valid. Need more info.

Let us know. 8-)Just don't use Start

What he is trying to say is to use "call"
Example:
call "C:\Path To My Exe\MyApp.exe"Since this question has turned into call versus start, perhaps it would be good to find out that the OP needs to do. One thought is that CALL runs syncronously with the batch file the CALL is part of. START may or may not run in the same window as the original batch file...this has implications as to what environment strings are available to the STARTed task. The original batch file ALSO may or may not WAIT on the STARTed task.

Let us know what you need to happen.

8-)Quote

I'm trying to start an exe from a batch file.

Based on the quote from the OP the idea is to start an exe from a batch file. To do this neither start nor call is required.

Start is explained above by Sidewinder, Call calls one batch program from another.


Sorry, the emails telling me I had responses were getting caught in my spam catcher thing..

Just directly calling the exe without start or call did the TRICK. Thanks y'all!


Discussion

No Comment Found