Welcome, guest | Sign In | My Account | Store | Cart

Checks IPv4

Batch, 13 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
@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));
}
Created by greg zakharov on Fri, 21 Jun 2013 (MIT)
Batch recipes (42)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks