Sign in to follow this  
Followers 0
Guest djm340

Extra brakets in the run command

5 posts in this topic

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



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

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

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

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  
Followers 0