Jump to content

Shellexecute my parameters have quotes inside


Recommended Posts

Ok this may be a really easy question to answer but I am stumped. Here is the following code:

CODE
ShellExecute("netsh", "interface ip set dns "Wireless Network Connection" static 192.168.1.1 primary")

The quotes inside my paramters "Wireless Network Connection" is throwing the code off. How would I set this so that it doesnt get confused by the quotes?

Thanks

Link to comment
Share on other sites

  • Developers

ShellExecute("netsh", 'interface ip set dns "Wireless Network Connection" static 192.168.1.1 primary')

Or

ShellExecute("netsh", "interface ip set dns ""Wireless Network Connection"" static 192.168.1.1 primary")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...