Sign in to follow this  
Followers 0
dan0964

FileCreateShortcut with a quote inside

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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)

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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

 

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  
Followers 0