Solved What's wrong with my batch file? Tags: Programming Firefox Notepad Error Message Apps Last response: August 2, 2010 8:22 PM in Applications Share Advice Pro July 31, 2010 2:53:27 PM 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: More about : wrong batch file Ijack a b L Programming July 31, 2010 3:21:20 PM 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" Advice Pro July 31, 2010 3:38:37 PM 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. Related resources Batch file renaming based on barcode - Forum Batch file with multiple if statements - Forum Batch File Error Handling - Forum Batch file to start a service if the service is not running - Forum Batch file - Forum Can't find your answer ? Ask ! Get the answer Best solution Ijack a b L Programming July 31, 2010 4:23:51 PM 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" ) Advice Pro August 2, 2010 8:22:36 PM Best answer selected by Advice Pro. Can't find your answer ? Ask ! Publish Related resources: ForumBatch File Problem ForumBatch File execution problems ForumHow to run a batch file upon logging off ForumHow to run a batch file upon logging off ForumBatch file ForumA batch file or brain problem? ForumNeed help with batch file ... ForumReplace a registry key with a batch file ? Forumenable/disable wireless networking batch file ? ForumDOS batch file from hell controlled my PC!! ForumWhat is the difference between Extended and normal version of a software? ForumHelp with hard drive ForumMy computer keyboard types wrong letters ForumNeed help with dvd detection problem ForumWhat is the best Windows Vista/Win7 Optimization program? More resources Read discussions in other Applications categories Graphics Internet Applications Multimedia Office Security CAD Distributed Computing Drivers Enterprise Software Firmware Programming Photoshop Skype Wordpress !