Jump to content
Sign in to follow this  

Make executable or script with netsh command and xml file

Recommended Posts


Okay guys here's the thing

I exported a wireless connection profile (including SSID, encryption type, password etc.) in windows vista using Netsh wlan export profile name=[ProfileName] Folder=[Folder Path] then I import the profile to another computer using netsh wlan add profile filename=[locationoffilename.xml]" and it works great i get an IP address and eveything is well.

Now in order to import the profile to other computers I must run the "netsh wlan add profile filename=[locationoffilename.xml]"

I'm wondering if anyone can help me to script or make an executable file to import the wireless connection profile on other computers instead of going to command prompt and typing the entire netsh command to import the profile. Basically, I just want to double click one file to complete the process.

How can I do that with AutoIt?

I hope this isnt too long and confusing.

Thanks guys

Share this post

Link to post
Share on other sites

From the Help File....Run and Runwait

Check out the remarks for @comspec

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.