Computing.Net > Forums > Programming > .VBS Script To View IP Address

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

.VBS Script To View IP Address

Reply to Message Icon

Name: JRComp
Date: September 26, 2008 at 11:01:29 Pacific
OS: xp
CPU/Ram: 2.6/2GB
Product: Built - ECS Black Se
Comment:

Hey all, does anyone know/have a .vbs script that will display the IP address of a computer? I need an easy way for everyone on our network to check thier computers e-mail address and send it to me. So it would be really easy if i had a script that i could attatch in an e-mail to everyone that will show the IP when they run it.

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: September 26, 2008 at 13:16:38 Pacific
Reply:

If you look at the header of the Email it will show the IP address from which the Email originated.

No need to complicated scripts that only repeats what every Email client already does.

It wont work if they send the Email via a Web based clients though. That will show the IP address of the Web client but you shouldn't be using a web based client for internal Email.

Stuart


0

Response Number 2
Name: Razor2.3
Date: September 26, 2008 at 13:29:16 Pacific
Reply:

If your office has Outlook, you could use this script (Warning: Untested, but stupidly simple)

Set mail = CreateObject("Outlook.Application").CreateItem(0)
mail.Subject = "IP info"
mail.To = "you@wherever.com"

With CreateObject("Wscript.Shell").Exec("ipconfig /all").StdOut
Do Until .AtEndOfStream
mail.Body = mail.Body & .ReadLine & ""
Loop
End With
mail.Send


0

Response Number 3
Name: JRComp
Date: September 26, 2008 at 13:42:51 Pacific
Reply:

My apologies, very bad day at work today, i didnt mean to take it out on anyone. The only way that really going to make this easy is script, we dont use outlook, and there is no ip in the address bar, we have out own server. Like i said, im sorry, it was out of line


0

Response Number 4
Name: Razor2.3
Date: September 26, 2008 at 15:10:23 Pacific
Reply:

Well, that's . . . rude.

EDIT: Eh, don't worry about it, NoIdea. Only two of the regulars even deal with VBS, and I haven't seen the other one.


0

Response Number 5
Name: toast (by NoIdea)
Date: September 26, 2008 at 15:41:08 Pacific
Reply:

I agree Razor.
JRComp you should have more respect.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: .VBS Script To View IP Address

Need cgi script to log ip addresses www.computing.net/answers/programming/need-cgi-script-to-log-ip-addresses/6931.html

VB script to change favorites path www.computing.net/answers/programming/vb-script-to-change-favorites-path/13780.html

VB script to put time and date on www.computing.net/answers/programming/vb-script-to-put-time-and-date-on/18241.html