Jump to content

Extra brakets in the run command


Guest djm340
 Share

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?

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

 

Link to comment
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?
Link to comment
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.

 

Link to comment
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. :)

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