How to, Script, use specific tcp route, THX

  • Thread starter Thread starter crlawler
  • Start date Start date
C

crlawler

Win 2000 Svr. with 2 NICs. Need a script to direct
a command (such as ping) through a specific
NIC or IP address. Something like...(oversimplified)

use NIC 123.234.345.567
out NIC, ping yahoo.com
if result = 0, print "success"
else print "fail"
end if
exit

I think I can do everything but directing the ping
or other command through a specific NIC.

Somebody drop me a hint PLEASE!

Thanks in Advance for your time.

Cary
 
Hi,

Use ipconfig /all and redirect the output to file. use
the data from that file.

It may not be the correct solution for your requirement.
Please let me know your requirement clear.
 
Back
Top