Jump to content

Recommended Posts

Guest djm340
Posted

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?

Posted

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.

 

Guest djm340
Posted

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?
Guest djm340
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...