FileCreateShortcut bug

Report problems with documented functionality
gwarble
Posts: 323
Joined: 30 Sep 2013, 15:01

FileCreateShortcut bug

17 Dec 2018, 14:52

noticed what I think is a bug:

Code: Select all

FileCreateShortcut, "S:\IT - Software\Tools\AppName.exe", %A_ProgramsCommon%\AppName\Update now.lnk
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:
The file does not have to exist at the time the shortcut is created; in other words, shortcuts to invalid targets can be created.
but maybe the folder does??
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
Helgef
Posts: 3570
Joined: 17 Jul 2016, 01:02
Contact:

Re: FileCreateShortcut bug

06 Jan 2019, 12:36

The folder where you want to create the link needs to exist, and you need permission to write there.

Cheers.
joefiesta
Posts: 246
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

Re: FileCreateShortcut bug

07 Jan 2019, 09:03

this definitely appears worthy of a documentation update. This is too subtle to be gleaned from "The file does not have to exist at the time the shortcut is created; in other words, shortcuts to invalid targets can be created."
safetycar
Posts: 121
Joined: 12 Aug 2017, 04:27

Re: FileCreateShortcut bug

07 Jan 2019, 09:56

It also happens with some others like FileMove. In case it's decided to update one, it could be done with others.

Return to “Bug Reports”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests