I have a .bat file which contains

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

but the command prompt says that call isn't a command.

  • 3
    Please don't cross post the same question on different sites. – ChrisF Jan 16 '11 at 21:06
  • What's the exact error message? – LawrenceC Jun 15 '12 at 3:36

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.


start calc.exe
  • 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

"c:\my path\myprog.exe" without START or call to execute your myprog.exe . that's how it's done in windows 7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy