smcombs Posted April 19, 2009 Share Posted April 19, 2009 Ok this may be a really easy question to answer but I am stumped. Here is the following code: CODEShellExecute("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 More sharing options...
Developers Jos Posted April 19, 2009 Developers Share Posted April 19, 2009 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 More sharing options...
smcombs Posted April 19, 2009 Author Share Posted April 19, 2009 Awesome thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now