7
1
I use Cygwin as my cmd replacement on Windows and I am in the process of cleaning up my system PATH variable.
I now have a folder containing exe's and shortcuts (.LNK) files which is in PATH containing all the small apps and software I use from the command line.
Everything works through CMD, however the shortcuts, .LNK files, do not work through Cygwin. Instead I get
bash: /cygdrive/e/Apps/uniserver.lnk: cannot execute binary file
My only guess is because it thinks .lnk is supposed to be a symlink?
Is there anyway to get Cygwin to launch the shortcut?
If you need to know where a shortcut points (a slightly different issue), you can use
readshortcut foo.lnk
. (Leaving a comment here so I'll be able to find the information again myself in the future :) .) – cxw – 2018-04-26T14:31:53.567