Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i do a tracert?

Status
Not open for further replies.

einstiien

Programmer
Aug 17, 2000
11
0
0
US
i need a command or somthing to do a trace root on a domain name

Einstiien
Einstiien@aol.com
 
Use the Shell command to run a batch file that has the tracert command.

EG have a batch file with the command:
tracert IP address or web address > "Outputfile.txt"

and in VB run the code:
Shell ("path_and_name_of_batch_file.bat")

Simon
 
as shown when you run with parameter -?

Code:
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

Options:
    -d                 Do not resolve addresses to hostnames.
    -h maximum_hops    Maximum number of hops to search for target.
    -j host-list       Loose source route along host-list.
    -w timeout         Wait timeout milliseconds for each reply.
[code]

-d will show you only IP addresses, you won't see like [URL unfurl="true"]www.microsoft.com[/URL] instead you'll see the ip addresses.

-h this will stop at a certain number of hops you specify if you want (typically depending who you are trying to trace, it should hit upto 30)

so if I did

[code]
tracert -d [URL unfurl="true"]www.microsoft.com[/URL]

it would get the trace of all IPs/Servers that are hoped through from your machine to that domain.

Remeber most command line programs can get retreival of help menu by using ? or help in either - or / as parameters.

also using > like he mentioned above will output your results into a text file, as > does with almost all command line command provided by microsoft.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top