I have always been able to use ahk to run shortcut links from my desktop. I have found one, however, that won't work.
Code: Select all
Run, "D:\Russ\Desktop\Tera Term.lnk" ;<-- Works
Run, "D:\Russ\Desktop\OE Classic.lnk" ;<-- Works
Run, "D:\Russ\Desktop\Global VPN Client.lnk" ;<-- Doesn't work
The error I get is: There are no other lines in the script.
I have tried #NoEnv.
I have renamed the shortcut with and without spaces.
I have moved the shortcut to another drive and folder (and renamed it there as well).
I have recreated the shortcut from the original exe.
I have tried running as administrator.
None of these tactics work.
I can type "D:\Russ\Desktop\Global VPN Client.lnk" (with the quotes) at a command prompt logged into drive C:\ and it works.
I copied the exact contents of the "Target:" and "Start in:" fields of the shortcut to create
Code: Select all
Run, "C:\Program Files\SonicWall\Global VPN Client\SWGVC.exe", "C:\Program Files\SonicWall\Global VPN Client\"
The only attribute set on the shortcut is the archive bit.
I can't find anything different in the properties of the shortcut compared to the ones that work.
This is not one of those hidden apps like Calculator.
So, as I said, I can use the second option to run the executable, but I spent this time just trying to figure out "WHY" with no luck, and was just wondering if anyone knows what's going on?
Russ