Click here to return home   Click here to visit the Tweaks.com Network


Better Easy IP Check
Posted 8/12/2002 by TweakXP Member
This tweak was based on the Easy IP Check tweak posted by Hugo Tremblay.

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)

Now when you type IP you will see:

---------------------------

IP Address. . . . . . . . . . . . : x.x.x.x

Press any key to continue . . .
---------------------------

(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.)

Related Advertisement

Free Computer Magazines for TweakXP.com Visitors!
InfoWorld Making the right technology buying decisions is more important to business success than ever. That's why InfoWorld is dedicated to helping IT professionals get technology right. eWeek is the essential weekly technology information source for builders of e-business.
Other Titles: RCR Wireless, Network World, InfoWorld, Information Week, CRN Magazine, BaseLine Magazine, Many More Free Magazines!

 


© 2001-2007 Advanced PC Media LLC, All rights reserved.
TweakXP.com® is a registered trademark of Advanced PC Media LLC.

Microsoft, Windows and Windows XP are registered trademarks of Microsoft
Corporation.  Microsoft Corporation in no way endorses or is affiliated with TweakXP.com®.
All other products mentioned are registered trademarks and/or trademarks of their respective companies.