netsh script no longer works from VB6 app?
I wrote a quick VB6 app to create wireless profiles for users in Vista and Windows 7 based on predefined xml files for the location they are working from. Everything worked fine in Vista and Win7 RTM, but recently the app has stopped working. Has something been changed recently that has made this stop working. The netsh command I can using is 'netsh wlan add profile filename ="C:\Test\test.xml"' which works perfectly fine from a command window, even one ran without admin privileges. In VB6 I am calling this: ShellEx "netsh.exe", essSW_Hide, "wlan add profile filename =" & chr(34) & "C:\Test\test.xml" & chr(34), "C:\Test\", "open", Me.hWnd I have tried running the app as administrator and that did not work either. What has changed about how netsh is handled or VB6 shell execution that would stop this from happening
January 4th, 2010 11:15pm

I have a suspicion that the issue is caused by an windows update, most likely of the security variety. I just tested the same app against a fresh load of Windows 7 Professional RTM and the program still works. The machine I have noticed the program not working on should be completely up to date with windows updates. Both are Windows 7 Professional.
Free Windows Admin Tool Kit Click here and download it now
January 4th, 2010 11:24pm

Hi, Since it is a script related question, please discuss it in our MSDN forum. Microsoft Developer NetworkArthur Xie - MSFT
January 7th, 2010 1:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics