Catagory Theme Song
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Well, since the replies to last few post have complemented the LERNING FACTOR I thought you all mite enjoy a small taste of some C+ code. So here goes .
Use this if you just want to display your IP address and not the extra information (default gateway / subnet mask)
Simply copy and paste the following into notepad
@echo.
@ipconfig | find “IP Address”
@echo.
@pause
And save as IP.BAT (save to your windows dir if you want to be able to access it anywhere)
Then go to “SART” then “RUN”
Now when you type IP and hit enter you will see:
—————————
IP Address. . . . . . . . . . . . : x.x.x.x
Press any key to continue . . .
—————————
What the hell is all this, Simple Codeing
(information about the code: @echo. produces a blank line, @ipconfig | find “IP Address” causes the output of ipconfig to be piped to the find command, which looks for the line containing “IP Address”, find then outputs your IP address, @pause causes the terminal to wait for user input before continuing. The @ before each command tells the terminal not to echo the command being typed.)
Technorati : Jim Shonk, ip, tips, tweaks, xp