Code: Select all
Run, F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk
Code: Select all
Run, F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk
Code: Select all
Run, F:\_Software (Programs`, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk
Code: Select all
Run, % "F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk"
Thank you. I have tried using the following command, but a message appears again:boiler wrote: ↑02 Dec 2021, 11:23The comma is the problem because commas are parameter separators. Either escape it:...or use expression syntax by using a forced expression:Code: Select all
Run, F:\_Software (Programs`, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk
Code: Select all
Run, % "F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk"
Code: Select all
Run, % "F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk"
Code: Select all
Run, % """F:\_Software (Programs, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk"""
Code: Select all
Run, "F:\_Software (Programs`, Applications)\Timer\2010\shortcuts\_4. general purpose.exe - Shortcut.lnk"
Code: Select all
Str := "Please enter ""FREE"" in the promotion code field."
MsgBox, % Str
Yes, I can see now that additional quotation marks are to be used in order to cause the program to view the rest of the quotation marks as part of the text rather than as operators.boiler wrote: ↑04 Dec 2021, 10:42Instead of thinking of it as three quotation marks in a row, you should just think of it as including a quotation mark inside a quoted string. The way you escape a quotation mark inside a quoted string is by preceding it with another one. It only happens to be three in a row because they happen to follow the opening quotation mark and precede the closing quotation mark.
The following example where the quotation marks appear in the middle of the string may make it easier to see what’s happening:The resulting MsgBox displays: Please enter "FREE" in the promotion code field.Code: Select all
Str := "Please enter ""FREE"" in the promotion code field." MsgBox, % Str