Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows 7 Windows 7
Search Search
Search for:
Tech Support Guy > > >

Solved: .BAT files will not run


(!)

Sparticus039's Avatar
Sparticus039 Sparticus039 is offline
Computer Specs
Member with 95 posts.
THREAD STARTER
 
Join Date: Sep 2009
Location: New Hampshire
Experience: Intermediate
21-Nov-2011, 01:59 AM #1
Question Solved: .BAT files will not run
Hey everyone,

I'm currently running a Minecraft server and have been attempting to allocate more memory to the server. Now, I have searched online and determined that if I run a batch file with the correct information, it will correctly allocate the amount of memory to this server. That's all fine and dandy...

I am able to create a text document, edit the information to suit my needs, and then save it as a batch file in the server's folder. The problem I am having is, I can't seem to get the .bat file to run. When I click on it to run, it simply flashes as though it opened and closed immediately, leaving me no time to ensure it is running. (no, it's not saved as a txt file)

Any ideas what could be causing this problem?
Elvandil's Avatar
Computer Specs
Moderator with 51,993 posts.
 
Join Date: Aug 2003
Location: Vermont
Experience: "Been through the mill."
21-Nov-2011, 02:34 AM #2
Where is the server's folder located? Where is the memory that you are trying to allocate?

Ruuning it from a command line window will allow you to see any errors or outputs from the file.
Squashman's Avatar
Trusted Advisor with 19,643 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
21-Nov-2011, 11:22 AM #3
Once the code is executed the cmd window is going to close. That is how it works. If you need the cmd Windows to stay open then put a PAUSE at the end of your batch file or do what Elvandil said and run it from cmd prompt.
Sparticus039's Avatar
Sparticus039 Sparticus039 is offline
Computer Specs
Member with 95 posts.
THREAD STARTER
 
Join Date: Sep 2009
Location: New Hampshire
Experience: Intermediate
21-Nov-2011, 11:28 AM #4
Quote:
Originally Posted by Elvandil View Post
Where is the server's folder located? Where is the memory that you are trying to allocate?

Ruuning it from a command line window will allow you to see any errors or outputs from the file.
-The server folder is located on my desktop (I chose an arbitrary location, so it can move if needed).
-I am not sure, I am trying to allocate RAM, so...location...unknown to me.
-Running it from a command line window gives me this error: 'java' is not recognized as an internal or external command, operable program or batch file.

I uninstalled Java and re-installed the latest build (build 1.6.0) thinking that it may be the problem, but it still occurs.

I have now tested this on my work PC and receive the exact same problem...Could it have something to do with having a 64-bit OS?
Sparticus039's Avatar
Sparticus039 Sparticus039 is offline
Computer Specs
Member with 95 posts.
THREAD STARTER
 
Join Date: Sep 2009
Location: New Hampshire
Experience: Intermediate
21-Nov-2011, 12:55 PM #5
I have actually resolved the issue...

Apparently the text I had used in my batch file was incorrect.

Thanks for the help anyways!
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
.bat, batch, java, minecraft, server

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑