FileCreateShortcut bug
Posted: 17 Dec 2018, 14:52
noticed what I think is a bug:
S:\ is a mapped network drive. Non-admin user needs elevation to create the shortcut, which means S:\ mapped drive no longer exists.
Created shortcut path is:
S:\IT_-_Software\Tools\Exe.exe
with quotes removed and spaces changes into underscores
When S:\ drive exists, shortcut is created as expected, including quotes
Help files says:
Code: Select all
FileCreateShortcut, "S:\IT - Software\Tools\AppName.exe", %A_ProgramsCommon%\AppName\Update now.lnk
Created shortcut path is:
S:\IT_-_Software\Tools\Exe.exe
with quotes removed and spaces changes into underscores
When S:\ drive exists, shortcut is created as expected, including quotes
Help files says:
but maybe the folder does??The file does not have to exist at the time the shortcut is created; in other words, shortcuts to invalid targets can be created.