@set @script=0 /*
@echo off
set @script=
cscript //nologo //e:jscript "%~dpnx0"
exit /b
*/
with (new ActiveXObject('Microsoft.XMLHTTP')) {
open('GET', 'http://internet.yandex.ru/', false);
send();
WScript.echo(responseText.match(/IPv4:\s(\d+\.){3}\d+/g));
}
Diff to Previous Revision
--- revision 1 2013-06-24 09:28:26
+++ revision 2 2013-07-01 05:49:57
@@ -9,5 +9,5 @@
open('GET', 'http://internet.yandex.ru/', false);
send();
- WScript.echo(responseText.match(/IPv4: ((\d+)\.){3}\d+/g));
+ WScript.echo(responseText.match(/IPv4:\s(\d+\.){3}\d+/g));
}