Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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!!

share|improve this question
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 at 22:13
    
You might need to do path/to/minecraft.exe –  BitNinja May 2 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 at 23:19

2 Answers 2

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.

share|improve this answer

Add this line :

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

And it will work.

share|improve this answer
    
Why will this work? Expand your answer a bit. –  Frank May 3 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 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 at 13:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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