Jump to content

Problems w RunWait


Artus
 Share

Recommended Posts

Hello,

I has problems with the following code during the execution the adapter name "LAN-Verbindung" is not registered but as error is not interpreted.

RunWait(@COMSPEC & " /c netsh interface ip set address name="LAN-Verbindung" addr=@IPAddress1 mask=255.255.255.0", "",@SW_HIDE )

Can enyone help me?

Thanks

Artus

Link to comment
Share on other sites

Hello,

I has problems with the following code during the execution the adapter name "LAN-Verbindung" is not registered but as error is not interpreted.

RunWait(@COMSPEC & " /c netsh interface ip set address name="LAN-Verbindung" addr=@IPAddress1 mask=255.255.255.0", "",@SW_HIDE )

Can enyone help me?

Thanks

Artus

I think it has something to do with your double quotes. When you get to the second double quote (before LAN) AutoIt thinks that LAN-Verbindung is a function. So to ad double quotes you can double them up like ""this"" or encapsulate them with single quotes.

like this :

RunWait(@COMSPEC & ' /c netsh interface ip set address name="LAN-Verbindung" addr=@IPAddress1 mask=255.255.255.0', '',@SW_HIDE )

Hope that helps.

Edited by blademonkey

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

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