Results 1 to 7 of 7

Thread: Problem with Batch Files

  1. #1
    Join Date
    Dec 2007
    Posts
    4

    Problem with Batch Files

    If I open the command prompt, I cannot do ipconfig unless I manually go into C:\WINDOWS\system32, which I shouldn't have to do, because it was working before.

    I'm also trying to get on a runescape private server. I have java installed, I try to run the batch file, and what happens is in the attachment...
    Also I can type 'JAVA' in the command prompt in system32 and it has like 15 lines of java text.
    Attached Images Attached Images

  2. #2
    Join Date
    Dec 2007
    Posts
    4
    Can anyone help?

  3. #3
    Join Date
    Aug 2006
    Posts
    2,763
    What OS? did you try CMD, or Command? I think one requires legacy environmental variables, such as "autoexec.bat" "config.sys"
    path = c:\windows\system32 and the other uses the default %system

  4. #4
    Join Date
    Dec 2007
    Posts
    4
    XP.

    This is the code:
    @ECHO OFF
    TITLE Run-Escape Client
    color 0a
    JAVA -Xmx500m EGUI
    PAUSE

    If you can somehow make it run off C:\WINDOWS\System32\command.com I will be very happy.


  5. #5
    Join Date
    Aug 2006
    Location
    255.255.255.666
    Posts
    2,056
    Are you not able to run this batch file using cmd.exe? Have you checked your PATH and PATHEXT variables listed in the Environment Variables section of the System PRoperties like Gizmo suggested to make sure you have all the required information in there?
    PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem

    PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    But for some reason you really have to use the Command.com instead of cmd.exe then see the attached screenshot on how to change it.

    Hope this helps.
    Attached Images Attached Images

  6. #6
    Join Date
    Dec 2007
    Posts
    4
    EDIT: It does work now, its all fixed
    I had to remove the space between sy stem32 in the quote lol.
    Last edited by ConTroL; 01-05-2008 at 10:37 PM.

  7. #7
    Join Date
    Aug 2006
    Location
    255.255.255.666
    Posts
    2,056
    Oh crap, I noticed it after you mentioned the space. I did copy/paste those lines directly from the Environment Variables fields so I am not sure where that space came from...glad you figured out the obvious though!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •