Login | |
|
 |
RE: Tracert script - 10/10/2007 12:59:00 AM
|
|
 |
|
| |
ebgreen
Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
|
You are going to use the .Run method of the WScript.Shell object or the Execute command to run the Tracert command and capture the output. Then you will iterate through each line of the output and use the Split() function to break it into pieces. The last piece is the ip address for that hop.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Tracert script - 10/10/2007 1:13:10 AM
|
|
 |
|
| |
ebgreen
Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
|
Sure, to get started read the "Read Me First" post. Then read the "Frequently Asked Stuff" post. Then search for the things that I mentioned to find examples of their use. Then write some code. Post back here if the code you write does not work.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|