Questions tagged [lnk]

Use this tag for questions about Windows .lnk files representing Shortcuts (or Shell Links). For questions about link errors after compilation (of for example C/C++ code) use the tag [linker-error]

Use this tag if your question is about working with the .lnk (Shell Links) files from a programming perspective.

This can include:

  • the creation of such .lnk files,
  • the required registry keys,
  • its installation by means of a setupprogram,
  • its binary format
  • the relation with IShellLink

Notice that in Unix variants those files are sometimes called .Desktop files.

Wikipedia reference

128 questions
0
votes
2 answers

Set keyboard combination for .lnk shortcut

I am trying to set keyboard combination for a .lnk shortcut using vbs. For some reason the 'shortcut key' section will not accept emulated letter key presses. All I get is pause key. For some reason Enter key as well as Tab, Esc work, meaning I can…
Nawad-sama
  • 151
  • 2
  • 12
0
votes
0 answers

error: LNK 2005 when i include regex, vector, or curlpp in c++ CLR

I'm new to C++ CLR development. I'm trying to develop a GUI app but when i include vector/regex/curlpp i get an error while compiling LNK 2005. Anyone have any idea how to get around this problem. I'm using visual studio 2022…
Ahlyab
  • 1
  • 1
0
votes
0 answers

Program installed with CMake /CPack / NSIS64 cannot find Qt plugins

I am trying to install a C++/Qt/Qml program with CMake. I tried the IFW generator, but I'd rather stick to NSIS64. Setup install file is correctly generated, and program is correctly installed. But my installed Qt program crashes right away,…
PJ127
  • 986
  • 13
  • 23
0
votes
1 answer

porting an xp batch file to win7

here is my original win xp batch file: @echo off %~d1 cd "%~p1" set swf=%~f1 set media=%~p1..\media.lnk echo set WshShell = WScript.CreateObject("WScript.Shell")>DecodeShortCut.vbs echo set Lnk =…
Joe
  • 1
0
votes
1 answer

How to create a link without .lnk extension?

If I have a file named "C\Test\mypic.jpg", can I create a shortcut with path "C\Test2\mypic.jpg"? Windows always seems to add a ".lnk" suffix, which is unwanted in my case.
user17596589
0
votes
3 answers

How to tell that the Setup has an uninstaller?

I have made a small application without setup. Just copy from A to B. Now I wanted to copy also a shortcut (lnk) file in the Windows system to have the application visible as uninstall-able. But when googling for keywords like "link shortcut…
Nasenbaer
  • 4,810
  • 11
  • 53
  • 86
0
votes
0 answers

About the context menu setting when the link file is selected

I tried to set to execute the specified command for the target file / folder by passing the path to the file / folder with a placeholder in the context menu. When I selected the shortcut (link file) and executed it , the passed path is not "the…
0
votes
1 answer

Python - open lnk file with arguments (FlashProgrammer)

I need to open lnk file with arguments via Python. On the command line it looks like this: FlashProgrammer -target=arm image.elf -device=xxxx -vdd=3V3 -erase=mass -program - secure And it works. But how can I do this in Python? I tried something…
0
votes
1 answer

How to get full path of shortcut link via vbscript

I have a vbscript in "D:\MyDoc\Script\MyScript.vbs" with a shortcut link in "D:\Working\MyScript.vbs.lnk" By double click the shortcut link, What code can I use to get the location of the shortcut link (ie. "D:\Working\MyScript.vbs.lnk") NOT the…
0
votes
1 answer

Creating a windows shortcut (.lnk) in Linux with spaces in the argument to a network share

I am needing to use Puppet to create windows shortcuts on hosts to be accessed via SAMBA. The Puppet side I'll be fine with, it's the script I've been having issues getting working. I've tried to use: mslink_v1.3.sh…
0
votes
0 answers

I accidentally uploaded a windows pointer instead of the actual folder- how do I delete it?

I accidentally uploaded a windows pointer instead of the actual folder- how do I delete it? Here's my problem- I can't rm this folder. It's an issue because I can't upload the real folder because it already exists. My workaround is to upload a new…
user3573562
  • 191
  • 11
0
votes
2 answers

My Page Updates On First Click But Does Not Refresh

I have a php file that almost work properly. But then it wouldn't refresh the page everytime the admin clicks the approve/notapprove link. so here's the thing: when an IT upload a file to the page, the file could be seen by the admin(who checks the…
MisaChan
  • 279
  • 1
  • 5
  • 15
0
votes
1 answer

lnk1114 Cannot overwrite the original file "xxx.lib", error code 32

lnk1114 Cannot overwrite the original file "xxx.lib", error code 32. it happened in vs2017. Microsoft does not have this in its error codes. actually i put "xxx.lib" in the output folder like "debug.win32". Did I make a mistake?
xxc
  • 1
  • 1
0
votes
1 answer

'Path cannot be found' when executing .lnk files from a batch file

I have created a batch-file to execute a couple of .lnk files. example: start C:\Users\Blaxie\Desktop\vrchatter\PlayspaceMover.lnk When executed it says that the path cannot be found; but I have copied and pasted it directly from the shortcut…
Blaxie
  • 11
  • 1
0
votes
1 answer

Using an Icon across user downloads

So I'm in the final stages of a project I've been working on. I went ahead and created an ICO file for my shortcut but now I'm not sure how to preserve the ICO file as the background. When I compress the file and send it to someone else, they open…
Carl
  • 457
  • 5
  • 23
1 2 3
8 9