I think swagfag's was right apart from missing a space before the /c.
Code: Select all
;legacy style:
Run, %ComSpec% /c ""C:\Program Files\Google\Chrome\Application\chrome.exe" %File%",, Hide
;expression style:
Run, % ComSpec " /c """"C:\Program Files\Google\Chrome\Application\chrome.exe"" " File """",, Hide
;more forwards compatible:
Run, % ComSpec " /c " Chr(34) Chr(34) "C:\Program Files\Google\Chrome\Application\chrome.exe" Chr(34) " " File Chr(34),, Hide
;legacy style:
Run, %ComSpec% /c ""C:\Program Files\Google\Chrome\Application\chrome.exe" "%File%"",, Hide
;expression style:
Run, % ComSpec " /c """"C:\Program Files\Google\Chrome\Application\chrome.exe"" """ File """""",, Hide
;more forwards compatible:
Run, % ComSpec " /c " Chr(34) Chr(34) "C:\Program Files\Google\Chrome\Application\chrome.exe" Chr(34) " " Chr(34) File Chr(34) Chr(34),, Hide