I don't think I've seen a Batch File Skype Resolver so here it is!
Demo Gif
Uses C99's Freee Skype Resolver API.
Skype.bat (Let's user specify Skype Username then sends it to the resolver)
Code
@Echo Off
color 9F
::: ___ _
::: / __|| |__ _ _ _ __ ___
::: \__ \| / /| || || '_ \/ -_)
::: |___/|_\_\ \_, || .__/\___|
::: ___ |__/ |_| _
::: | _ \ ___ ___ ___ | |__ __ ___ _ _
::: | // -_)(_-</ _ \| |\ \/ // -_)| '_|
::: |_|_\\___|/__/\___/|_| \__/ \___||_|
::: v1.0
:::
for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
SET /P V=Enter Skype Username:
START Resolve.bat %V%
Resolve.bat (Calls the API)
Code
@if (@a==@b) @end /*
@echo off
::: ___ _
::: / __|| |__ _ _ _ __ ___
::: \__ \| / /| || || '_ \/ -_)
::: |___/|_\_\ \_, || .__/\___|
::: ___ |__/ |_| _
::: | _ \ ___ ___ ___ | |__ __ ___ _ _
::: | // -_)(_-</ _ \| |\ \/ // -_)| '_|
::: |_|_\\___|/__/\___/|_| \__/ \___||_|
::: v1.0
:::
for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
color 8F
setlocal
if "%~1"=="" goto W
set "URL=http://api.c99.nl/skyperesolver.php?key=codex014042&username=%~1"
for /f "delims=" %%I in ('cscript /nologo /e:jscript "%~f0" "%URL%"') do (
echo %%I
)
goto :EOF
:W
echo Start "Skype.bat" first! Then type the Skype Username
echo;
Pause
start Resolve.bat
exit
goto :EOF
JScript */
var x=new ActiveXObject("Microsoft.XMLHTTP");
x.open("GET",WSH.Arguments(0),true);
x.setRequestHeader('User-Agent','XMLHTTP/1.0');
x.send('');
while (x.readyState!=4) {WSH.Sleep(50)};
WSH.Echo('Resolved IP Address: ' , x.responseText);