extofer -2 Posting Whiz in Training

I'm new to WSH, trying to get a Logon script to work combinins VBS and NETSH.

I have instanciated the object

Set objShell = CreateObject("WScript.Shell")

and I'm trying to run a NETSH command off of this:


objShell.run "cmd netsh interface ip set address "Wireless Network Connection" static 10.0.0.7 255.255.255.0 10.0.0.1 1"

In the end, this does nothing, just opend a DOS promtp... any suggestions??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.