Windows Scripting

Camper

New Member
I need to write a script to recreate a routing table on a windows 2003 server. I have little experience writing windows scripts so any help would be great.
Here is sample of the routing table.
Network Destination, Netmask, Gateway, Interface, Metric
10.1.0.0, 255.255.0.0, 10.1.1.4, 10.1.1.4, 10
10.1.1.4, 255.255.255.255, 127.0.0.1, 127.0.0.1, 10
 
Here is the syntax that I’m using in the batch file.
route add -p 10.1.0.0 mask 255.255.0.0 10.1.1.4 metric 10 if 10.1.1.4
route add -p 10.1.1.4 mask 255.255.255.255 127.0.0.1 metric 10 if 127.0.0.1 1
Dose this look right?
 
Back
Top