Hello everyone
I would love to have a script that allow me to double clicking a desktop icon to get my ip address.
Someone could give me a hand to do this. Thank you
Hello everyone
I would love to have a script that allow me to double clicking a desktop icon to get my ip address.
Someone could give me a hand to do this. Thank you
Gunz Dont Kill PEOPLE
I Do........
Create the file Myip.url and save it:
[InternetShortcut] URL = http://www.whatismyip.com/
That's all.
Then simply double-click it to see your IP.
I found the script to make Windows XP automaticlly set the network to DHCP. It works great. Now I have two shortcuts on my desktop (with one of Danrok's beautiful backgrounds) called "local" & "internet" all I have to do it double-click and now I have access to my server or to internet. I should have done this months ago.
Code:strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each objNetAdapter In colNetAdapters errEnable = objNetAdapter.EnableDHCP() Next
Add these lines in your script, to "grab" the IP address, as well as Browser and date:
// Find Server date and Time
$date = date("l jS F Y, g:i A");
// Find Browser and IPaddress
$browser =$_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
Then add these lines (or similar) to the message body, to have the info added in the message (you must see the actuall script that you use, to see how these lines can be added in the message body):
$pfw_message = ............ This is similar to how your script message body is being created
These are the lines to add
. "Date of submission : $date\n"
. "Browser : $browser\n"
. "IP address : $ip\n";
If you need further help post your script here.
Bookmarks