So I'm having this problem where I'm trying to start Minecraft from a batch file, but everytime I run it, it gives me this error message, "Windows cannot find 'minecraft.exe'. Make sure you typed the name correctly and try again." but what's bothering me is that it has worked fine on my Windows 7 computer.

Here's the code that I used to start Minecraft:

if %input3% == 1 start minecraft.exe

My specs: Windows 8.1, 64-bit, 8GB RAM, 1TB hardrive.

Any help would be great!!

  • 1
    This batch file needs to be executed from the folder with minecraft.exe in it. Or you need to add minecraft.exe to your path variable but I wouldn't recommend that. – BlackVegetable May 2 '14 at 22:13
  • You might need to do path/to/minecraft.exe – BitNinja May 2 '14 at 22:19
  • I've tried the path one before and it didn't work. Can I just create a new folder and put minecraft.exe in it so that it will work? – benimen16 May 2 '14 at 23:19

This batch file requires that minecraft.exe be in the %PATH% environment variable, or more likely, in the exact same location as your minecraft.exe file is at. Chances are you wanted to tidy things up and put minecraft elsewhere and have this batch file on your desktop or the like.


Add this line :

set %path%=%path%;<location of minecraft.exe>

And it will work.

  • Why will this work? Expand your answer a bit. – Frank May 3 '14 at 2:46
  • Because you need to TEMPORARILY add minecraft folder to path, so it could search minecraft.exe in that folder and open it. – Jamie May 3 '14 at 13:47
  • So add that to your answer. Although, the way you have it, it's going to keep adding Minecraft to the path everytime you run it. – Frank May 3 '14 at 13:52

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.