Example:
The following batch file will show the full path of all running programs.
@ECHO off
FOR /f "tokens=1" %%G in ('tlist') DO (call :s_item %%G)
GOTO :eof
:s_item
tlist %1 | find "CmdLine"
"When I first started running, I was so embarrassed, I'd walk when cars passed me. I'd pretend
I was looking at the flowers" ~ Joan Benoit Samuelson, 1984 Olympic Marathon gold medalist
TRACERT
Trace Route - Find the IP address of any remote host. TRACERT is useful for troubleshooting
large networks where several paths can be taken to arrive at the same point, or where many
intermediate systems (routers or bridges) are involved.
Syntax
TRACERT [options] target_name
Key
target_name The HTTP or UNC name of the host
Options:
-d Do not resolve addresses to hostnames.
(avoids performing a DNS lookup)
-h max_hops Maximum number of hops to search for
target.(default=30)
-j host-list Trace route along given host-list.
up to 9 hosts in dotted decimal notation, separated
by spaces.
-w timeout Wait timeout milliseconds for each reply.
The functionality of TRACERT is the same under all versions of windows but the output is
cosmetically improved under XP.
Tracert uses the IP TTL field and ICMP error messages to determine the route from one host to
another through a network.
Care must be taken with tracert as it shows the optimal route, not necessarily the actual route.
To be accurate, it is possible to
ping
from a UNIX machine back to the PC using the -R option to
record the route taken - but only if the particular network devices support it.
This diagnostic tool determines the path taken to a destination by sending ICMP Echo Request
messages with varying Time to Live (TTL) values to the destination.
Chia sẻ với bạn bè của bạn: |