Sign in to follow this  
Followers 0
Artus

Problems w RunWait

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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 )

Share this post


Link to post
Share on other sites

#3 ·  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

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