Question : VBS Scripting

Hi,

1) This is related to VBS Scripting
- What is "VBS" stands for?
- For What are the VBS used in Networking? (Could you provide at least one sample of it?

2) Thank you

tjie

Answer : VBS Scripting

VBS = Visual Basic Scripting
You can use anything you want with VBS in Networking... For example, you can change IP address for all adapters on your computer:

strComputer = "."
arrIPAddress = Array("192.168.66.66")
arrSubnetMask = Array("255.255.255.0")
arrGateway = Array("192.168.66.254")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter in colNetAdapters
     errEnableStatic = objNetAdapter.EnableStatic(arrIPAddress, arrSubnetMask)
     errGateways = objNetAdapter.SetGateways(arrGateway)
Next
Random Solutions  
 
programming4us programming4us