Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey,
Just have a quick question,
My batch file won't call the program I tell it to. I tell it CALL C:\programfiles\blah\blah.exe and nothing happens.. any ideas of what is wrong?

A couple possibilities.
C:\programfiles\blah\blah.exe
may be a wrong path. If it's actually:
C:\program files\blah\blah.exe
you will need to put it in double quotes:
"C:\program files\blah\blah.exe"
Or blah.exe may not be there.
"nothing happens.."
Not often that NOTHING HAPPENS. If it's not found, you will usually get the NT equivalent of "bad command".
One way to check is to put a PAUSE after the problem line.
Finally, you don't need to CALL an exe. CALL is for batch files.
If at first you don't succeed, you're about average.M2

Alright I just figured out how to do it...
Lets say I wanted to open up call of duty multiplayer.. Just in case Its not in that path it will find it in C: drivec:
cd \
cd "Program Files\call of duty game of the year edition"
CODMP.exeThanks anyway

Or, you could do it it one line:
START "C:\Program Files\call of duty game of the year edition\CODMP.exe"
"If it jams, force it. If it breaks, it needed replacing anyway."
-Murphy's Laws

![]() |
C# vs C++
|
dos window disappears in ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |