netsh wlan add

Batch, ASP, JScript, Kixtart, etc.
This topic is 11 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
casaestrada
Posts: 15
Last visit: Tue Jun 12, 2012 10:56 am

netsh wlan add

Post by casaestrada »

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

<br />Sub Wireless
<br />SET WSHShell = CreateObject("WScript.Shell")
<br />WSHShell.Run "Netsh wlan add profile filename="xxxxxxxxxxxxxxxxxxx.xml" user=all >>C:xxxxx.txt
<br /> Msgbox "Installing xxxxx Wireless"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If
<br />
This topic is 11 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked