Questions tagged [windows-shortcut]

A Windows Shortcut is a link that points to a program on the computer, in another directory

Description

A Windows Shortcut is a link that points to a program on the computer, in another directory.

Shortcuts allow users to create links to their programs in any folder, Start bar, Taskbar, Desktop or other locations on their computer.

A shortcut in Windows is commonly identified by a small arrow in the bottom corner of the icon and are files that end with a file extension of .lnk.

Links

Windows Shortcut

ComputerHope

12 questions
6
votes
1 answer

Inno Setup Create individual shortcuts on all desktops of all users

I'm creating a shortcut on users Desktop with Inno Setup: Name: "{commondesktop}\Setup"; Filename: "{app}\Setup.exe"; WorkingDir: "{pf}\Program"; IconFilename: "{app}\Setup.ico" But users, with no admin rights, cannot delete this Shortcut, how to…
3
votes
1 answer

Inno Setup desktop shortcut (link) which has "Run as administrator" advanced property set

I am struggling to get Inno setup (5.5.9u) to created a desktop shortcut that has an icon and has the advanced property of "Run as administrator" set. Issue This question, is a little different than: How to set 'Run as administrator' on a file using…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
3
votes
0 answers

Can I commit a shortcut to subversion (and get it back in a usable form)

What happens if I commit a Windows shortcut to subversion? (Motivation here, though I don't honestly expect to actually do it, but I have done something similar in Linux in the past.) Suppose I add and commit a shortcut to subversion in Win7: Can…
Anon Gordon
  • 2,469
  • 4
  • 28
  • 34
2
votes
1 answer

How to change the icon of the shortcut of Inno Setup uninstaller without separate icon file?

Is it possible to change the icon of the uninstaller shortcut in the Start menu without storing a separate icon file (to the app folder)? I see this: Using Resource Hacker for changing the icon after the build, but I cannot implement it. My…
Nico Z
  • 997
  • 10
  • 33
2
votes
1 answer

Is it possible to change windows default shortcut Functions

I want to know whether it is possible to Windows default shortcuts functions. We know that Ctrl+F is used to search in windows explorer. But I want to use Ctrl+F to trigger my application which will give more advanced options to search. I want…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
1
vote
1 answer

Set Windows shortcut arguments path relative

My goal is to create a portable PDF that will execute with the portable navigator I include in the package. The problem is that the navigator's shortcut changes and sets itself relative path correctly, but the arguments on the target field (the PDF…
0
votes
0 answers
0
votes
0 answers

FileNotFoundError: [WinError 2] The system cannot find the file specified

I am trying to open a shortcut for Notepad called Notepad.lnk. Because I want to learn how to open applications so I can use the pygui library to manipulate them. Got FileNotFoundError I got this error: Traceback (most recent call last): File…
Welshy
  • 57
  • 8
0
votes
1 answer

How to make a Windows shortcut to run a function in a Python script?

I am trying to find a way to create a Windows shortcut that executes a function from a Python file. The function being run would look something like this (it runs a command in the shell): def function(command): subprocess.run(command, shell =…
MiniGeek
  • 23
  • 3
0
votes
1 answer

How do I open an Excel spreadsheet in a separate instance without opening in Protected View?

I've come across an issue at work where I have a spreadsheet that needs to open in its own instance - it's a very complex modelling spreadsheet that does lots of processing using external DLL functions, so using other operational spreadsheets in the…
0
votes
0 answers

How do I read where a Windows shortcut links to in Node.js?

Node's built-in fs has a fs.readLink function, but it appears to be for symbolic links/junctions. How can I read the properties of a Windows shortcut (a .lnk file), to find out where it leads? For example: C:\ProgramData\Microsoft\Windows\Start…
Drakinite
  • 363
  • 1
  • 13
0
votes
1 answer

Shell execution of existing shortcuts works, but execution of new shortcuts fails. Why?

When executing a Windows shortcut in Java (and possibly .NET and other platforms), execution of an existing shortcut works without issue, but new shortcuts fail to execute regardless of settings, permissions, working directory, contents of the…
Charles Burns
  • 10,310
  • 7
  • 64
  • 81