Artus Posted February 3, 2006 Share Posted February 3, 2006 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 More sharing options...
MHz Posted February 3, 2006 Share Posted February 3, 2006 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 ) Link to comment Share on other sites More sharing options...
blademonkey Posted February 3, 2006 Share Posted February 3, 2006 (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 ArtusI 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 February 3, 2006 by blademonkey ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
GaryFrost Posted February 3, 2006 Share Posted February 3, 2006 Also next time please post questions in the support part of the forum 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now