Support Forums

netsh wlan add

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.
User avatar
casaestrada
Posts: 15
Joined: Sat Mar 21, 2009 5:41 am

netsh wlan add

Postby casaestrada » Tue Jun 12, 2012 9:50 am

I have an HTA that I am trying to modify which will allow my staff to simply select a location via check and then using sub wireless will automatically load the xml from a network drive. Problem is I can do this via vbs and bat but from hta i cant get the correct parameters to work. Any ideas?? Should I map drive first or argghhhh - I'm stuck.

Code: Select all

Sub Wireless
SET WSHShell = CreateObject("WScript.Shell")
WSHShell.Run "Netsh wlan add profile filename="xxxxxxxxxxxxxxxxxxx.xml" user=all >>C:xxxxx.txt
 Msgbox "Installing xxxxx Wireless"
        End If
User avatar
casaestrada
Posts: 15
Joined: Sat Mar 21, 2009 5:41 am

netsh wlan add

Postby casaestrada » Tue Jun 12, 2012 10:56 am

I'm getting "undetermined string constant "

Code: Select all

WSHShell.Run "Netsh wlan add profile filename=""xxxxxxxxxxxxxxxxxxx.xml""user=all >>C:xxxxx.txt"


even if i
remove user=all >>C:xxxxx.txt"
or
add WSHShell.Run "Netsh wlan add profile filename=""xxxxxxxxxxxxxxxxxxx.xml user=all""

i get same error

Return to “Other Scripting Languages”

Who is online

Users browsing this forum: No registered users and 1 guest