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 | E-mail me updates | Report abuse Register or log in to remove Ijack Programming Authority 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" | Report abuse 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. | Report abuse Best solution Ijack Programming Authority 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" ) | Report abuse Advice Pro August 2, 2010 8:22:36 PM Best answer selected by Advice Pro. | Report abuse Register or log in to remove Ask the community Publish Tom's Hardware>Forum>Applications>What's wrong with my batch file?> Related ressources: ForumBatch file renaming based on barcode ForumBatch file with multiple if statements ForumBatch File Error Handling ForumBatch file to start a service if the service is not running ForumBatch file 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 !