|
-
October 17th, 2002, 02:59 PM
#1
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
-
October 17th, 2002, 03:05 PM
#2
Registered User
Is the command prompt working for any other prompts, or is it just this batch file that it has problems with?
-
October 17th, 2002, 04:20 PM
#3
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
-
October 17th, 2002, 05:47 PM
#4
Registered User
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.
-
October 17th, 2002, 06:43 PM
#5
Registered User
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.
-
October 18th, 2002, 04:00 AM
#6
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.
-
October 19th, 2002, 02:40 AM
#7
Registered User
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.
-
December 16th, 2010, 09:48 PM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks