Jump to content
Sign in to follow this  
Guest djm340

Extra brakets in the run command

Recommended Posts

Guest djm340

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?

Share this post


Link to post
Share on other sites
GaryFrost

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}>

try

Run ( '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.

 

Share this post


Link to post
Share on other sites
Guest djm340

try

Run ( '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?

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
Guest djm340

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' )

<{POST_SNAPBACK}>

Yuppers, That works great! Thank you!

I just have to work at my syntax now. :)

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  

×