A Advice Pro Distinguished Feb 25, 2009 29 1 18,580 Jul 31, 2010 #1 I wrote my first batch file in Notepad and save it as Firefox.bat: @echo off start firefox.exe When I ran Firefox.bat, I got an error message reading: Windows cannot find 'firefox.exe'. Make sure you typed the name correctly, and then try again. Firefox.exe it's clearly in its folder:
I wrote my first batch file in Notepad and save it as Firefox.bat: @echo off start firefox.exe When I ran Firefox.bat, I got an error message reading: Windows cannot find 'firefox.exe'. Make sure you typed the name correctly, and then try again. Firefox.exe it's clearly in its folder:
Solution Ijack Jul 31, 2010 No, No: @echo off start "C:\Program Files\Mozilla Firefox\firefox.exe" (Actually, the "start" is redundant. You could just put @echo off "C:\Program Files\Mozilla Firefox\firefox.exe" )
No, No: @echo off start "C:\Program Files\Mozilla Firefox\firefox.exe" (Actually, the "start" is redundant. You could just put @echo off "C:\Program Files\Mozilla Firefox\firefox.exe" )
Ijack Distinguished Jul 30, 2008 1,035 0 20,360 Jul 31, 2010 #2 That folder is not (I presume) in the default PATH variable. Put the full path to the program in your batch file: start "C:\Program Files\Mozilla Firefox\firefox.exe" Upvote 0 Downvote
That folder is not (I presume) in the default PATH variable. Put the full path to the program in your batch file: start "C:\Program Files\Mozilla Firefox\firefox.exe"
A Advice Pro Distinguished Feb 25, 2009 29 1 18,580 Jul 31, 2010 #3 So, like this: @echo off start firefox.exe "C:\Program Files\Mozilla Firefox\firefox.exe" Even though this starts up Firefox, I still get the error message. Upvote 0 Downvote
So, like this: @echo off start firefox.exe "C:\Program Files\Mozilla Firefox\firefox.exe" Even though this starts up Firefox, I still get the error message.
Ijack Distinguished Jul 30, 2008 1,035 0 20,360 Jul 31, 2010 Solution #4 No, No: @echo off start "C:\Program Files\Mozilla Firefox\firefox.exe" (Actually, the "start" is redundant. You could just put @echo off "C:\Program Files\Mozilla Firefox\firefox.exe" ) Upvote 0 Downvote Solution
No, No: @echo off start "C:\Program Files\Mozilla Firefox\firefox.exe" (Actually, the "start" is redundant. You could just put @echo off "C:\Program Files\Mozilla Firefox\firefox.exe" )
A Advice Pro Distinguished Feb 25, 2009 29 1 18,580 Aug 2, 2010 #5 Best answer selected by Advice Pro. Upvote 0 Downvote