Dos commands

September 26, 2009 at 23:20:59
Specs: Windows XP
ip tracer in Dos commands

See More: Dos commands

Report •


#1
September 26, 2009 at 23:33:51
XP has no MS-DOS, maybe NT COMMAND PROMPT CMD.EXE is what you mean ??

http://ss64.com/nt/


Report •

#2
September 26, 2009 at 23:45:59
EDIT::It screwwed and u gotta scroll sideways to read it all :P

If that IS what you mean, IPCONFIG /ALL should get an internal address or downloading WGET.EXE and running the command wget -q -O - http://whatismyip.com/automation/n0... from the same directory should get the external IP from the website. If i had more time id explain better. You can get wget.exe from here (http://users.ugent.be/~bpuype/wget/) and an example of the codes in use would be from this source file (I have the authors permition as he is my uncle)

::Script By LEoH


@ECHO OFF
ECHO.
ECHO. Checking Internet connection, please wait...
PING -n 1 www.youtube.com|find "Reply from " > NUL
IF NOT ERRORLEVEL 1 goto :SUCCESS
IF     ERRORLEVEL 1 goto :FSUCCESS

:FSUCCESS
ECHO. Second Connection Test.
PING -n 1 www.google.com|find "Reply from " > NUL
IF NOT ERRORLEVEL 1 goto :SUCCESS
IF     ERRORLEVEL 1 goto :IF
ECHO. Failed

:SUCCESS
ECHO.External IP > 1.ip
ECHO. > 2.ip
wget -q -O - <a href="http://whatismyip.com/automation/n09230945.asp" target="_blank">http://whatismyip.com/automation/n0...</a> > 3.ip
ECHO. > 4.ip
ECHO. > 5.ip
IPCONFIG /ALL > 6.ip
Goto :COMPILE

:IF
ECHO.Internet Connection Failed. > 1.ip
ECHO.Failed To Retreive External IP. >2.ip
ECHO. >3.ip
IPCONFIG /ALL > 4.ip
Goto :COMPILE

:COMPILE
FOR %%1 in (*.ip) do type %%1 >> IP.LOG
del *.ip
Goto :END

:END
EXIT

Yes, yes, both I and he know that the compile step isnt neccisarry but thats the newest version of his script we can find in about this 3 minutes and we are trying to work on a website. If this makes no sense its available to download this source from my websites page, this is only gonna be up for a few hours. http://atoru.comxa.com/downloads/wg... this is the link this has both WGET.EXE and the source for that program in batch to run. gl, sorry i cant explain better right now, if u need help ill explain better if u ask. sorry lol. gl.


Report •

Related Solutions


Ask Question