Jump to content

Recommended Posts

Posted

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

Posted

Hi Artus,

Look at Frequently Asked Questions Number 7 for the help on this problem that you have.

Solution, use single quotes to wrap the string that has double quotes within it as below.

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

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

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