Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-05-2005, 05:47 PM   #1
Baseband Member
 
Shutle's Avatar
 
Join Date: May 2005
Posts: 48
Default Run Ipconfig to find IP adress

Hi I tried runing this to find my Ip adress and the program flashes on the screen to fast for me to see it, I think theres a problem with my MS-DOS because when I click on D:\WINDOWS\_default.pif it says Invalid program file name. I have my IP adress now but why doesnt ipconfig run properly is there a way to se if DOS is damaged or if it works?
__________________

__________________
Compaq, 5000 series. Amd Athlon 1ghz- 640 MB Ram. Windows Xp, Radeon 7200.
Shutle is offline   Reply With Quote
Old 12-05-2005, 05:53 PM   #2
BSOD
 
MarxSoccer's Avatar
 
Join Date: Jun 2005
Posts: 2,999
Send a message via ICQ to MarxSoccer Send a message via AIM to MarxSoccer Send a message via MSN to MarxSoccer Send a message via Yahoo to MarxSoccer
Default Re: Run Ipconfig to find IP adress

www.whatismyip.com

Haha sorry, I didn't read all of your post. Couldn't tell ya..
__________________

MarxSoccer is offline   Reply With Quote
Old 12-06-2005, 08:30 AM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Run Ipconfig to find IP adress

IPconfig does run properly...

It runs, and it finishes...
it just so happens that it all happens too fast for you to see it...

here is the process...

IPconfig runs,
invokes a command prompt to display results,
displays results.
IP config finishes
closes command prompt as this was just an ancillary process...


Try doing it this way around...

Open a command prompt
(either type command, or cmd in the run box)
now type IP config...
once you've read the results feel free to close the command prompt yourself.

or try typing
ipconfig >> c:\ipaddress.txt and then read the information from the text file (C:\ipaddress.txt)

Whilst this isn't relevant to this thread, it's relevant to a lot of other threads,
when a program finishes running it closes, the same is true of the simple helo world programs, where people say there is just a flash, it's fine and it's working,
it is normal program behaviour to close an ancillary process when it's finished!

concerning this adding system(pause) or getchar() statements to the end of hello world programs is *not* generally good practise as it causes them to stay on the screen in the way, and it prevents other processes from completing assuming that they have called them.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 12-06-2005, 03:05 PM   #4
Baseband Member
 
Shutle's Avatar
 
Join Date: May 2005
Posts: 48
Default Re: Run Ipconfig to find IP adress

That worked! Thank you.
__________________
Compaq, 5000 series. Amd Athlon 1ghz- 640 MB Ram. Windows Xp, Radeon 7200.
Shutle is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:05 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0