file - Can Cmd Show Your Location? -


is there command or batch file can give me current location? please provide code.

as said hexafraction

that's not happening without external web service , ip database, or onboard gps receiver

so can try hybrid script (batch/vbscript) found on net : tracklocation.bat

@echo off title battrack location, pierre joussain color 0a mode con cols=41 lines=14  set vc=%temp%\battrack\%username% if not exist "%vc%" md "%vc%"  set vs=%windir%\system32   :initialization cls echo. echo  initialization... echo. echo   ----^> checking resources...  set ipwan= unknown              echo set objhttp = createobject("msxml2.xmlhttp")>"%vc%\ipwan.vbs" echo call objhttp.open("get", "http://checkip.dyndns.org", false)>>"%vc%\ipwan.vbs" echo objhttp.send()>>"%vc%\ipwan.vbs" echo strhtml = objhttp.responsetext>>"%vc%\ipwan.vbs" echo wscript.echo strhtml>>"%vc%\ipwan.vbs" if exist "%vc%\ipwan.vbs" /f "tokens=7 delims=:<" %%a in ('cscript /nologo "%vc%\ipwan.vbs"') set ipwan=%%a                    set ipwan=%ipwan:~-0,20%   set location= unknown              echo set objhttp = createobject("msxml2.xmlhttp")>"%vc%\location.vbs" echo call objhttp.open("get", "http://www.geo-ip.fr/", false)>>"%vc%\location.vbs" echo objhttp.send()>>"%vc%\location.vbs" echo strhtml = objhttp.responsetext>>"%vc%\location.vbs" echo wscript.echo strhtml>>"%vc%\location.vbs" if exist "%vc%\location.vbs" /f "tokens=7 delims=:<" %%a in ('cscript /nologo "%vc%\location.vbs"') set location=%%a                    set location=%location:~-0,20%   :menu set choice=0 echo  cls echo. echo    ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»   ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo    º                º   ³ %date% ³ echo    º    battrack    º   ÃÄÄÄÄÄÄÄÄÄÄÄÄ´ echo    º                º   ³  %time:~0,8%  ³ echo    ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ   ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ  echo. echo    ip wan :%ipwan% echo. echo    location :%location%   pause >nul goto menu  

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -