1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Lost BATch file commands mode, ping....

Discussion in 'Windows XP' started by Katyzone, 2004/06/15.

Thread Status:
Not open for further replies.
  1. 2004/06/15
    Katyzone

    Katyzone Inactive Thread Starter

    Joined:
    2004/06/15
    Messages:
    4
    Likes Received:
    0
    I use .bat files alot on my XP computer. I write simple batch files in loading this program by this application, or automatically loading a level or map into a game, for instance a one line bat file like 'quake.exe -level10' will run Quake with level10 loaded and ready to play without going through the Quake menu.

    Anyway, as time went on I discovered more bat commands and incorporated them in my bat files. Recently I dicovered that the command 'MODE' works on XP in bat files. So I started using, for instance,

    'mode con cols=80 lines=50'

    to set the size of my little bat files display.

    Anyway, yesterday the 'MODE' command quit working and gives me this error message:

    'mode' is not recognized as an internal or external command,
    operable program or batch file.

    Now I find 'PING' quit working too, and no telling what other commands stopped working now.

    This really messes up all the bat files for the dozens of games and applications I have automated for (I couldn't help but to use the 'MODE' command in most of them and 'PING' is indispensible).

    The bat files work fine on my NT at work and on my friend's XP but don't on my PC. For a year plus the bat files I wrote worked fine. They worked fine even after all the updates from Microsoft a week ago. They quit working yesterday.

    Anyone have a line on this?
     
  2. 2004/06/15
    Abraxas

    Abraxas Inactive

    Joined:
    2002/08/16
    Messages:
    2,361
    Likes Received:
    3
    Check to see that mode.com is still in your System32 directory.

    Take a look at your environment variables. If the commands are still on your machine, it may be a problem with paths.

    Right-click My Computer, Properties, Advanced tab, Environment Variables button. Be sure that %SystemRoot%\System32 is specified in your Path variable. If you have probelms, post the contents of the Path variable here.
     

  3. to hide this advert.

  4. 2004/06/15
    Katyzone

    Katyzone Inactive Thread Starter

    Joined:
    2004/06/15
    Messages:
    4
    Likes Received:
    0
    Thanks

    Thanks, that was it- path was missing. :)
     
  5. 2004/06/16
    Abraxas

    Abraxas Inactive

    Joined:
    2002/08/16
    Messages:
    2,361
    Likes Received:
    3
    You're welcome. Strange that it vanished.
     
  6. 2004/06/16
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    In a batch file the current system path is held in the variable %PATH%. If you have the line:

    %PATH% = C:\<path to folder>

    Your system path can be over-written by the single path.

    Instead you should use

    PATH = C:\<path to folder>
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.