127 questions
0
votes
0
answers
26
views
JNA CoCreateInstance returns S_OK but ShellLink/IShellLinkW fails, COM pointer is non-null but object unusable
I'm making a Java app that scans the Windows Recent Files folder and resolves .lnk shorcuts to their actual file paths. I'm doing so using JNA the JNA API and simulating IShellLinkW and IPersistFile.
...
0
votes
1
answer
257
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 ...
1
vote
2
answers
180
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 ...
1
vote
1
answer
4k
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 ...
0
votes
0
answers
56
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 folder):...
0
votes
0
answers
26
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 ...
0
votes
0
answers
696
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 ...
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 ...
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 ...
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 ...
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....
0
votes
1
answer
192
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 ...
1
vote
0
answers
273
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\...
0
votes
0
answers
48
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 ...
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....
0
votes
1
answer
609
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 ...
5
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 ...
2
votes
0
answers
539
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
'...
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 added ...
0
votes
1
answer
46
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 ...
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 ...
1
vote
1
answer
241
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:\...
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 ...
1
vote
2
answers
4k
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 ...
2
votes
1
answer
891
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 ...