Jump to content

"" in the V3 line command


marale
 Share

Recommended Posts

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!
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...