Guest djm340 Posted July 23, 2005 Share Posted July 23, 2005 I'm trying to run lines such as: Run ( "netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1" ) but as you can see it has too many sets of brackets. What can I do to do the same thing? Would using variables help? Link to post Share on other sites
GaryFrost 20 Posted July 23, 2005 Share Posted July 23, 2005 I'm trying to run lines such as:Run ( "netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1" )but as you can see it has too many sets of brackets. What can I do to do the same thing? Would using variables help?<{POST_SNAPBACK}>tryRun ( 'netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1' ) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to post Share on other sites
Guest djm340 Posted July 23, 2005 Share Posted July 23, 2005 tryRun ( 'netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1' )<{POST_SNAPBACK}>Nope single quotes didn't help. It seems like it ignores the code as it never runs. Any other suggestions? Link to post Share on other sites
GaryFrost 20 Posted July 23, 2005 Share Posted July 23, 2005 ok, this should work Run (@comspec & ' /c netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1' ) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to post Share on other sites
Guest djm340 Posted July 23, 2005 Share Posted July 23, 2005 ok, this should workRun (@comspec & ' /c netsh interface ip set address name="Wireless network connection" static 10.11.12.33 255.255.255.0 10.11.12.1 1' )<{POST_SNAPBACK}>Yuppers, That works great! Thank you!I just have to work at my syntax now. Link to post Share on other sites
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