Link to home
Start Free TrialLog in
Avatar of aquasw
aquasw

asked on

bridge connection vbscript

I would like to write a code (vbscript) that will enable me to connect 2 network interfaces in a bridge.
It will be executed under windows xp.
Avatar of Jared Luker
Jared Luker
Flag of United States of America image

You can do that with a simple batch file using the NetSH utility.  You can code it into VB if you want as well..

http://www.microsoft.com/windowsxp/using/networking/expert/crawford_02april22.mspx

netsh bridge set a 1 e

'Start VB
Set WshShell = WScript.CreateObject("WScript.Shell")
wshshell.run "netsh bridge set a 1 e"

'End VB

You will need to change the a and e based on the instructions in that article.
ASKER CERTIFIED SOLUTION
Avatar of sr75
sr75
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sr75...

Do you know if that script works on Vista?  That would be a good one for my wife to run when  the wireless card on our Kitchen PC forgets its job.
I tested it on Vista and it didn't work, but it might help point you in the right direction for a script that will work on Vista.
ok... thanks

aquasw... sorry to derail your thread...

we now continue with our regularly scheduled program...