Unable to execute exe file

February 19, 2012 at 03:59:18
Specs: Windows 7
I need to run an exe file in the same location as the file used to execute it.
The command:start /w "%~dp0\xxx x.exe"
Instead of opening the actual exe, it opens the command prompt with the location. I don't want to change the name. How will this be possible?

See More: Unable to execute exe file

February 19, 2012 at 08:07:39
start x.exe? that should start the file without any problems


Report •

February 19, 2012 at 14:41:35
start "" /w "%~dp0\xxx\x.exe"

If the pathname has double quotes, you need to code a pair of double quotes after start. The above statement is anyway a waste of code.

Report •

February 20, 2012 at 01:25:42
Reading more accurately your post, maybe you want

start "" /D "%~dp0.\xxx" /W x.exe

Report •

Related Solutions

February 20, 2012 at 05:57:16

Report •

February 20, 2012 at 07:05:47

start "" /w "%~dp0\xxx x.exe"

If the above works perfectly, Why your Private Message?

And Why did you change your nickname? that's not a fair behavior on any Forum.

Report •

February 20, 2012 at 07:46:18
Just unsure and only after found out the batch file didn't do it's job, wait for xx to terminate and continue. Changed nick because got banned for posting "fishy" links.

Report •

Ask Question