Jump to content
Sign in to follow this  
sumit

Problem with syntax

Recommended Posts

sumit

This is the code to set dynamic ip address settings

RunWait('netsh interface ip set address "Local Area Connection" dhcp', "", @SW_HIDE)

Now instead of Local Area Connection i want to put in this code a variable $connection_name . But problem is the quotes and double quotes. How can this be done

Share this post


Link to post
Share on other sites
sandman

If I understand your problem right, you'll want to use this:

RunWait("netsh interface ip set address """ & $connection_name & """ dhcp", "", @SW_HIDE)oÝ÷ ÙK"p¢«¨µë*ºjºbÈzØb%G­«pYlk¥jתê-xZ+jȦ¦W«{¦¦WºÚ"µÍÙÐÞ
    ][ÝÉ][ÝË    ][ÝÕÈÈ[ ][ÝÉ][ÝÑ^[I][ÝÉ][ÝËÒË][ÝÊ
will msgbox This is an "Example", OK.

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites
sumit

Thanks a lot dear ..... it works now...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.