Jump to content
Sign in to follow this  
xbonez

Obtaining IP address of machine by name

Recommended Posts

xbonez

How can I get AutoIt to lookup the IP address of a machine by name and send it to cliipboard?

I can easily do a nslookup of the machine name, and that displays the IP address, but just displaying the IP address on the screen isn't enough. I need the IP address to be on the clipboard, or a notepad file or some such thing.

Thanks

Share this post


Link to post
Share on other sites
ThickOfIt

you want to capture the output with stdout.

here's how to perform a similar operation in vbscript

http://blogs.technet.com/heyscriptingguy/archive/2006/08/17/how-can-i-modify-the-output-of-the-ping-command.aspx

Share this post


Link to post
Share on other sites
boogieoompa

Like this?

$IP = @IPAddress1
ClipPut($IP)

Share this post


Link to post
Share on other sites
TurionAltec

_TCPIpToName() function in "iNet.au3" UDF

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.