@setlocal @echo off copy http://checkip.dyndns.org wanip.htm > nul setdos /X-6 set wanip=%@line[wanip.htm,0] set wanip=%@strip["<body></html></head>Current IP Address: Check",%wanip] setdos /X0 if exist wanip.htm del wanip.htm > nul endlocal wanip