Jump to content
Sign in to follow this  
marale

"" in the V3 line command

Recommended Posts

marale

could you help me to convert this line on Autoit V3:

msiexec /i "F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!

I've some problems with "". Because it's necessary for lauch the install.

Thanks...

Share this post


Link to post
Share on other sites
CyberSlug

EDIT: Yeah, see what Jon said :whistle:

Explaination:

In case a string or command line commands the double quote mark, you can use single quotes to enclose the entire string.

$example = ' The man said, "Hello." '

Another way is to still use the double quotes for enclosing the entire string but replace any instances of " within the string with "".

$example = " The man said, ""Hello."" "

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
marale

Thanks for your solutions.

But, if i want replace the letter F: by a variable like :

$server= " \\server1\\appli"

what is the solution for that the value of variable is visible:

RunWait('msiexec /i "F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!')

Sorry for my English !!!

Share this post


Link to post
Share on other sites
CyberSlug

Use & to join strings or variables:

$server= " \\server1\\appli"

RunWait('msiexec /i " & $server & "\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!')

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
marale

Thanks for your responce.

This is my code:

$server= " \\server1\appli"

$comm= 'msiexec /i " & $server & "\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!'

msgbox(4096,"valeur",$comm)

This is what appears in the message box.

msiexec /i " &$server & "\adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!

I must have the value of $server in the commande line like this :

msiexec /i "\\server1\appli\Adobe\reader -\Adobe Reader 6.0 - Français.msi" /qb-!

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.