Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Route Add

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60067
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Route Add
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Route Add - 5/10/2008 10:25:58 PM   
  Deanos

 

Posts: 1
Score: 0
Joined: 5/10/2008
Status: offline
Hello all this is my first post and I am new to VB scripting.  Im starting very simply with some basic admin tasks.  So far Ive been able to reboot a PC given an IP address.  I am now trying to perform a route add again given an IP address.  Ive found script to add route but am unsure how to pass it to a client PC based on IP address.  Thanks for any help in advance.... 
 
 
Post #: 1
 
 RE: Route Add - 5/11/2008 3:23:18 AM   
  yfki

 

Posts: 75
Score: 0
Joined: 12/12/2007
Status: offline
Just use the .Exec method with this...
http://msdn.microsoft.com/en-us/library/yfy6y4h1(VS.85).aspx

run("route add " &  network & " mask "  & netmask  & " " + env("INTERNAL_IP4_ADDRESS"))

(in reply to Deanos)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Route Add Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts