I write in a .bat FILE

call "c:\my path\myprog.exe"

But dos says call not a command ?!!

My question is not about cmd prompt but BATCH file.

link|improve this question
2  
Please don't cross post the same question on different sites. – ChrisF Jan 16 '11 at 21:06
feedback

1 Answer

Call is not for running other programs like that, it is strictly for calling other batch files. You probably want start if your program starts another window, else just type the command by itself on one line.

e.g.

start calc.exe
"C:\Stuff\Program.exe"
link|improve this answer
Needs some empty quotes or a title though. eg. start "" /b /i "C:\Stuff\Program.exe" The b switch supresses a new window and the i switch passes the current variables. – paradroid Jan 16 '11 at 21:35
While the documentation for call states that it is for running batch files it has no problems running any other command as well. – Joey Jan 25 '11 at 13:14
feedback

Your Answer

 
or
required, but never shown