Sorry there is a space in there

For.exe /f "tokens=14 delims=: " %a in ('ipconfig^| find "IP Address"') do
set IP=%a

then %IP% is your IP

-----Original Message-----
From: Hatley, Ken [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 04, 2001 2:11 PM
To: Exchange Discussions
Subject: RE: Off Topic "Display IP from DOS using %???%

for /f "tokens=2 delims=:" %a in ('ipconfig^| find "IP Address"') do set
IP=%a

dumb

-----Original Message-----
From: Van Huissteden, Adriaan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 04, 2001 1:52 AM
To: Exchange Discussions
Subject: Off Topic "Display IP from DOS using %???%

Well,

        I know this can be done, but have forgotten!

>From dos type echo %username% and displays User name (vanhuia)

        What is it for Ip address?   echo %ip%?

Thanks
        

Adriaan Van Huissteden

Network Administrator
Connect Credit Union
Phone: (03) 6233 0660



DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please contact the sender immediately if you have received this
message in error. Thank you. 



_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to