Jump to content

FileCreateShortcut with a quote inside


dan0964
 Share

Go to solution Solved by dan0964,

Recommended Posts

Hi,

Would someone be kind enough to tell me where im going wrong with this?

Local Const $sFilePath = @DesktopDir & '\Google Chrome.lnk'
    FileCreateShortcut(@ProgramFilesDir & '\Google\Chrome\Application\chrome.exe" --ssl-version-min=tls1', $sFilePath, @ProgramFilesDir, '', 'Chrome', @ProgramFilesDir & '\Google\Chrome\Application\chrome.exe', '', '', @SW_SHOWMAXIMIZED)

The quote in chrome.exe" --ssl-version-min=tls1 is throwing it off

Thanks

Dan

Link to comment
Share on other sites

  • Moderators

You only have a single double quote in your path. What happens if you do something like this instead?

FileCreateShortcut('"' & @ProgramFilesDir & '\Google\Chrome\Application\chrome.exe" --ssl-version-min=tls1', $sFilePath, @ProgramFilesDir, '', 'Chrome', @ProgramFilesDir & '\Google\Chrome\Application\chrome.exe', '', '', @SW_SHOWMAXIMIZED)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Solution

Ive just fixed it, I was being silly... 

Thanks for the reply though

FileCreateShortcut(@ProgramFilesDir & '\Google\Chrome\Application\chrome.exe', $sFilePath, @ProgramFilesDir, ' --ssl-version-min=tls1', 'Chrome', @ProgramFilesDir & '\Google\Chrome\Application\chrome.exe', '', '', @SW_SHOWMAXIMIZED)
Edited by dan0964
Link to comment
Share on other sites

Welcome to the AutoIt forum by the way! :D

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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