Follow on from Ipconfig batch file: CMD prompt not working
Results 1 to 8 of 8

Thread: Follow on from Ipconfig batch file: CMD prompt not working

  1. #1
    Registered User
    Join Date
    Dec 1998
    Location
    Thornton Heath, Surrey, London, England
    Posts
    136

    Follow on from Ipconfig batch file: CMD prompt not working

    Hi,

    If any of you has seen this thread

    http://forums.windrivers.com/cgi-bin...threadid=45187

    then you will know I was trying to make a batch file to run ipconfig.

    This has been done now! Thanks

    However I have now discovered that my CMD window on my XP laptop is having problems.

    As mentioned in the above post, the batch file we wrote works fine on all machines except this laptop!

    When I try and run it I either get the IPCONFIG /ALL command scrolling down the screen non stop or if the batch file is different;

    start
    ipconfig

    for example then the computer loads up hundreds of dos windows until the machine runs out of memory.

    WHY WHY?

    I really don't get this. It works on many other machines, what is going wrong?!

    Thanks for you help
    Nathan

  2. #2
    Registered User geoscomp's Avatar
    Join Date
    Apr 2002
    Location
    Minnesota
    Posts
    2,340
    Is the command prompt working for any other prompts, or is it just this batch file that it has problems with?

  3. #3
    Registered User
    Join Date
    Dec 1998
    Location
    Thornton Heath, Surrey, London, England
    Posts
    136
    When you go to

    START: RUN: CMD

    then you can type commands and it works fine.

    It appears to be just with any batch files that I write.

    I create a new text file. Change the name to XXX.bat then edit it and then run it.

    It has the effect described above

  4. #4
    Registered User geoscomp's Avatar
    Join Date
    Apr 2002
    Location
    Minnesota
    Posts
    2,340
    I don't know if it would help any, but try editing it as a text file first, locating it in the directory of the c drive..not in any files or etc...and then rename it xxx.bat. I'm thinking that you have somekind of windows installation problem on this one machine, or else something in the network hardware/software is malfunctioning
    Last edited by geoscomp; October 17th, 2002 at 05:52 PM.

  5. #5
    Registered User shamus's Avatar
    Join Date
    Apr 2001
    Location
    Cornish,Maine,USA
    Posts
    3,140
    Originally posted by geoscomp
    I don't know if it would help any, but try editing it as a text file first, locating it in the directory of the c drive..
    then create a shorcut to it on your desktop and tweak the properties of the shortcut.I had a dos based grading prog at school that wouldn't load on XP until I set the shortcut properties to open the prog windowed....Why? IDFK!...but it worked. Worth a try. I'm not sure if compatibility mode applies to batch files... but worth a look see there too.

  6. #6
    Registered User
    Join Date
    Dec 1998
    Location
    Thornton Heath, Surrey, London, England
    Posts
    136
    Having played around a bit more, I have discovered that any batch file works fine as long as it starts with

    cd\

    This obviously gets you back to a c:\ prompt.

    When you type the commands directly into the dos box then I don't have to do cd\ to start with.

    It seems strange that you should have to do this when you run from a batch file.

  7. #7
    Registered User Archangel42069's Avatar
    Join Date
    Sep 2002
    Location
    Malebolge, 8th Level of Hell
    Posts
    607
    That does seem strange...perhaps if we could find other ppl it happened to, and recreate the conditions, we could get it into a service pack or something....

    Anyway, when you execute any program type that runs in a dos box, the directory it's located in is automatically the working directory...like I said, perhaps it's hotfix or SP material.

  8. #8
    Registered User
    Join Date
    Dec 2010
    Posts
    1
    Try any of these variations:

    @echo off
    ipconfig/all
    pause
    cmd

    cd\
    cd \windows\system32
    ipconfig /all
    pause

    if you put cmd at the end it leaves the cmd dos window open so you can do more commands if needed and both work in XP. I have seen the scrolling issues on some pcz and laptops not sure why they do that. i actually did know at one time but it's been years since i used these batch files, it was probably back when this was originally posted. But i had an internet access tech at work ask me to make some batch files for ipconfig/all, ipconfig/release and /renew it took my a while to remember the exact command line so i went searching and found this post. i figured there are people out there that still have the same issues so I posted anyways.

Bookmarks

Posting Permissions

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