Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
103 views

How to get the real path of lnk files

I'm trying to find out how to get the real path from .lnk files. I took this approach because the original files are in different locations and the routes have no pattern in its names. So I grouped a ...
Gonzalo S's user avatar
0 votes
2 answers
667 views

PowerShell, change PowerShell/CMD Console Font and Layout in Windows 10 version 2

I have asked this question before Change PowerShell Console Font and Layout in Windows 10, but there was no definitive answer on the previous one (using a different approach) and my new question tries ...
YorSubs's user avatar
  • 3,982
1 vote
2 answers
145 views

How can I correctly creat this shorcut file with its arguments?

I want to create a shortcut file to a PDF document with arguments, so that when I double click it on Explorer, it will open the pdf file in my default PDF viewer at the page specified. I can create ...
Ralf_Reddings's user avatar
0 votes
1 answer
642 views

Lnk files are saved as .download files

I have an online application, which allows me to save and edit different projects in Firefox. Each project has a directory on a shared drive. The application included a button to open the project ...
Dalgi181338's user avatar
1 vote
1 answer
2k views

Can I run a minimised program from task scheduler?

I have a sync program which runs various Git commands to update a repository. So far I have written a functioning .sh script and scheduled it to run periodically from startup. Currently, I will be ...
SKLR's user avatar
  • 33
0 votes
0 answers
50 views

LNK1104: cannot open file 'libraryName.lib' file

error messageThis is my first time using Visual Studio. My plan is to build some simple software with no external libraries & dependencies, and use CMake to turn it in an executable. However, I ...
hellopeople125's user avatar
0 votes
0 answers
49 views

Unresolved external symbol on basic function

Build error LNK2019 happens when building project with 1 cpp file namespace foo { __declspec(dllimport) void Print(); } void main() { foo::Print(); } foo is defined. header (in other ...
mmd's user avatar
  • 1
1 vote
1 answer
382 views

Creating a Windows shortcut (shell link) in C++

I want to programmatically create a Windows shortcut (.lnk file) to a folder. To do this, I tried this code snippet. However, I get the compilation error C2371 'WebBrowser': redefinition; different ...
BullyWiiPlaza's user avatar
0 votes
0 answers
25 views

Edit Target on *.lnk with PowerShell [duplicate]

I have a shortcut at C:\Users\Public\Desktop\Shortcut.lnk. The current target is: "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" https://localhost:443/WebApp My goal is to ...
Christopher Cass's user avatar
0 votes
4 answers
735 views

Appending Data to LNK Shortcut File [Emotet TTP]

There has been a rise in the use of LNK shortcut files to deliver malware, in particular Emotet. Within the LNK file is a payload (usually a VBS script) that is found with findstr.exe. The payload is ...
pittsec's user avatar
  • 23
0 votes
0 answers
531 views

Hide console when running shortcut pinned to taskbar

I'm trying to create a shortcut (.lnk) file that will launch scrcpy without showing the console window, but I need to be able to pin it to the taskbar and have the window and shortcut merge. Scrcpy is ...
readf0x's user avatar
  • 115
-1 votes
1 answer
264 views

qpdf with visual studio console project but lnk1107 - a dll cannot read at 0x308

I follow this link and download the built directory, tring to use qpdf library in a easy way. How to build qpdf on Windows? I do these steps to setup my visual studio project: 1. C/C++ -> General -&...
tian's user avatar
  • 21
2 votes
1 answer
1k views

Open a Windows shortcut file `.lnk` with subprocess

I am fairly new to Python and have been trying to make a program that will open the "Minecraft launcher" for me. Context However, the new launcher .exe file is blocked as it is located in ...
Calax's user avatar
  • 93
0 votes
2 answers
311 views

Set keyboard combination for .lnk shortcut [duplicate]

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 ...
Nawad-sama's user avatar
0 votes
0 answers
37 views

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 ...
Ahlyab's user avatar
  • 1
0 votes
0 answers
349 views

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 ...
PJ127's user avatar
  • 1,238
0 votes
1 answer
2k views

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 ...
user avatar
1 vote
0 answers
444 views

C# trying to getshortcuttargetfile to parse lnk file

I'm trying to build a simple archiving program. We have files scattered throughout the system so part of the routine checks to see if a shortcut was put into the system and if so, to fetch all of the ...
Nathan Mc's user avatar
1 vote
3 answers
4k views

how do you set the icon of a shortcut through a batch file?

I'm trying to create a script that will create shortcuts of the target batch files and set the icon to a .ico or .dll icon file: @echo off @echo Writing CreateShortcut script @echo Set oWS = WScript....
Judess 69er's user avatar
0 votes
0 answers
201 views

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) ...
Zen_ShooChoo's user avatar
0 votes
1 answer
183 views

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 ...
unknow_user's user avatar
0 votes
1 answer
224 views

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 ...
user3660333's user avatar
1 vote
0 answers
251 views

C# - Get the executable path from a Office Windows 10 .lnk file

I'm trying to get the exe path from the Windows 10 Office .lnk file. e.g. Link Path - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk Exe Path - C:\Program Files\Microsoft Office\...
Sandwich's user avatar
  • 356
1 vote
1 answer
3k views

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:...
Matthew Dennison's user avatar
0 votes
0 answers
47 views

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 ...
user3573562's user avatar
3 votes
1 answer
7k views

create a shortcut(.lnk) of file in windows with python3

i want to create a shortcut(.lnk) of some files in some specific path. for example make shortcut of my file("D:\New folder\new.exe") in ("H:\happy\hi\new.lnk") i want to write this program in python3
Soheil Rasouli's user avatar
0 votes
1 answer
2k views

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....
xxc's user avatar
  • 1
2 votes
2 answers
359 views

ShellLink returning an old location

In a C# program I want to be able to identify the file locations of LNK files (the actual file location, not the LNK location). But sometimes ShellLink is returning an old location for a file. For ...
Mick Bruno's user avatar
  • 1,423
0 votes
1 answer
548 views

'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 ...
Blaxie's user avatar
  • 11
2 votes
1 answer
643 views

IShellLinkW::GetPath( SLGP_RAWPATH ) does not return the 'raw' target of a lnk file

I noticed that the method IShellLinkW::GetPath returns an empty string if the target of a shortcut points to a special folder, like 'My PC', or a Control Panel applet. Sample code ' CLSID_ShellLink ...
ElektroStudios's user avatar
3 votes
0 answers
2k views

Windows shortcut (.lnk) filesize

The size of shortcut (.lnk) files on my computer (Windows 7) ranges from 235 to 15,881 bytes, with an average of 2,395 bytes. In Microsoft's documentation of the shortcut file format, it contains an ...
NewSites's user avatar
  • 1,709
1 vote
2 answers
2k views

c++ visual studio LNK1104 cannot open file MSVCURTD.lib

Hi I am working on a visual studio c++ project started on visual studio 2012, I have to adjust this project and add new functionalities, my problem is that when I try to build I get the following ...
Ale61268967's user avatar
2 votes
0 answers
531 views

Issue mapping a network location with vb script

We have a strange issue when mapping a SharePoint 2013 WebDAV location to Windows 10 Network Locations. We map these locations with a VB script: dim SecurityGroup(1) dim OneDriveName, OneDrivePath '...
user avatar
3 votes
0 answers
928 views

Python change the icon of an existing windows shortcut

I wanted to modify the icon of an already existing Windows shortcut (aka a .lnk file) using an externally created .ico file, and not one provided by Windows itself (by this I mean using an icon ...
SaltyHelpVampire's user avatar
2 votes
0 answers
1k views

_ITERATOR_DEBUG_LEVEL > 1 is not supported in release mode

I am using VS2015 C++ Project. Initially I had a LNK2038 issue which was error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '1' in imagecolor.obj so I ...
Kazu's user avatar
  • 21
1 vote
1 answer
698 views

Creating .lnk-file using only C++ and cmd

I have an .exe file and I want to add it to Autorun without using explorer. I know way to my .exe file. For adding something to Autorun I should create shortcut.lnk and put it to C:\Users\User\AppData\...
Toxa's user avatar
  • 17
0 votes
1 answer
41 views

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 ...
Carl's user avatar
  • 477
0 votes
1 answer
201 views

c# is there a way to get more than one files name without their path and their extension in an array? [duplicate]

For short what i want to do is get the names of the files in a certain folder as an array kind of like the example at the bottom, however it gets the full path instead of just name of the file, also ...
aGoodFellow's user avatar
0 votes
1 answer
1k views

java retrieve lnk file parameters and target

I would like to extract some info from a .lnk file in Java, specifically the entire target (with command line parameters after the initial .exe) and the working directory as well. In the question ...
fen's user avatar
  • 73
0 votes
0 answers
24 views

How to Drag custom filetype from browser to desktop/folder without creating shortcut?

I am writing a webpage that hosts some files on it that can be saved out if the user wants to. These files are Unity3D files under the format ".unitypackage" how do I write the drag and drop ...
DBillings's user avatar
1 vote
1 answer
237 views

How to get this link to start in another folder?

I have a batch script that creates a vbs that creates a shortcut (complicated I know), however the problem is that it launches the program where the shortcut is located. Any way to make it start in C:\...
Mark Deven's user avatar
5 votes
1 answer
4k views

change the icon of a windows shortcut .lnk file using python

I want to change the icon of a .lnk file after I have created it. This is my main code so far: import win32com.client shell = win32com.client.Dispatch("WScript.Shell") shortcut = shell....
56-'s user avatar
  • 606
2 votes
0 answers
307 views

How to set shortcut file target path with windows variables [duplicate]

I am trying to create a shortcut link to pointing some target file. I am able to put static target path but the problem is when I move the target file to some other place it's unable to open the ...
Siva kumar's user avatar
1 vote
2 answers
504 views

Xgboost gpu install fatal error LNK1181

I am trying to install xgboost gpu support version by follow the follow instructions. xgboost-gpu-support I use windows 10, visual studio 2017. The not-gpu-support version works fine. But for gpu-...
Zongze Wu's user avatar
  • 1,023
1 vote
2 answers
3k views

Changing the target of multiple shortcuts with PowerShell

I am writing a PowerShell script to search the C:\Users directory and change all lnk files that contain \server1 to \server2 but keep the rest of the link. What I have so far will keep changing the ...
Tom Dickson's user avatar
4 votes
1 answer
796 views

Read the Target of a Shortcut using Go

I'm trying to read the target file/directory of a shortcut (.lnk) file using Go. I already have a loop for all the files in a directory and I can successfully identify if it is a dir with IsDir() or ...
Emi's user avatar
  • 535
2 votes
1 answer
796 views

SHGetFileInfo for lnk file without lnk overlay arrow

I'm trying to get the icon out of a .lnk file without the .lnk overlay appearing. The documentation has information about a flag SHGFI_ADDOVERLAYS which can be set to add an overlay, but I am looking ...
xandermonkey's user avatar
  • 4,382
4 votes
3 answers
27k views

How can I change icons for existing URL shortcuts using Powershell?

I am wanting to change the icon for an existing shortcut using Powershell. I played around with it but I couldn't set the changes so I went online and came up empty-handed. I've seen examples with VB ...
Rincewind's user avatar
  • 412
0 votes
1 answer
1k views

Change directory to a SharePoint link

Via command line, can someone suggest ways to change directory (cd) to a SharePoint link (pointed via a xyz.lnk link)?
tako_tokyo's user avatar
1 vote
1 answer
3k views

How do I edit the Target property in a shortcut to include a character after the file path using Powershell?

To run a new, discrete instance of an application we have been manually creating a shortcut of the application .exe file and then editing the Target property of the shortcut to include a space and ...
XMHell's user avatar
  • 11