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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with ROUTE ADD

Status
Not open for further replies.

anglin4trouble

Technical User
Nov 24, 2005
1
US
I am logging into a VPN in which I then have to type the following:

Route Add 10.0.0.0 Mask 255.0.0.0 <VPN IP Address>

I am trying to figure out how to write a batch file for this statement, but because the VPN IP address changes I need to capture the address and then supply it after I have signed on.

Is there a way to do this?

Thanks in advance for your help.
 
Try route add 10.0.0.0 mask 255.0.0.0 %1

Then you can just call the batch file with the IP address as the first parameter.


pansophic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top