127 questions
4
votes
3
answers
28k
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 ...
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 ...
2
votes
2
answers
1k
views
Create lnk shortcut from lua (without lfs)
I would like to write a function to create a windows .lnk file from my lua script. I found a function in the LuaFileSystem library . Is there a way to do this without the library? (The reason: I am ...
2
votes
1
answer
5k
views
How to add command parameter to windows shortcut
When I typed this command in cmd.exe:
E:\mywamp\redis-2.8.19\redis-server.exe --maxheap 512mb
it ran successfully.
I want to create a windows shortcut to start redis quickly. So I created a ...
0
votes
1
answer
330
views
Create shortcut to .jar using java-code
I wrote an updater for my Java application which downloads its newest jar-file online, replaces the shortcut to it before starting the new jar and finally deleting itself.
I used the following code ...
3
votes
2
answers
2k
views
Copy files from folder of lnk files back into folder
I have a bunch of folders, each containing a number of shortcut link files to mp3 files existing in completely separate folders. eg:
/rock-mp3-shortcuts
/jazz-mp3-shortcuts
/funk-mp3-shortcuts
what ...
5
votes
1
answer
1k
views
How to track .lnk files in git?
I have .lnk files in my git repo. And other users are able to use them after cloning the repo successfully.
However, once you have used it (clicked on it for example), it automatically becomes ...
0
votes
1
answer
217
views
c++ LNK2001 & LNK1120 compile errors [duplicate]
I am debugging some C++ software, and want to modify an existing function slightly, so that it changes the value of a particular variable used elsewhere in the program.
The function is currently ...
0
votes
0
answers
25
views
Unresolved external LNK 1120 [duplicate]
http://pastebin.com/Q8Z2deVK
Its a PE file.
I am getting LNK 1120 and LNK 2019.
I googled both errors and it seems that there are a whole bunch of reasons for that error.
LNK 1120 occurs in the ...
1
vote
2
answers
2k
views
Execute a batch file before executing in a shortcut (.lnk)
I have multiple versions of a program called Siemens NX. NX uses environmental variables for configuration. I need NX 10.0 to use a different set of environmental variables than my NX 7.5 which uses ...
0
votes
1
answer
892
views
GStreamer linker error LNK2019 and LNK2001 in Qt C++
I'm having some trouble correctly linking the gstreamer library in qmake.
So, I have library I wrote which uses gstreamer, I added this lines to the .pro file:
INCLUDEPATH += ../OtherLibs/GStreamer/...
5
votes
0
answers
4k
views
Get target of Windows .lnk shortcut using "Start in" directory
I am trying to retrieve the target path of a Windows .lnk shortcut, but the "Target" is not an actual file path according to the .lnk file's properties:
I am using the IWshRuntimeLibrary and the ...
0
votes
1
answer
78
views
Determine if a .lnk points to a metro app
How to determine by .lnk (or its target), whether it points to a metro (Windows 8) application?
For instance, the shop link shortcut points to %windir%\WinStore\WinStore.htm. How should I know, that ...
1
vote
1
answer
2k
views
Creating a lnk in VBS
I get an error that on line 6, the one with lnk.TargetPath, that the argument is invalid. I am hoping to make a link to this program under the start menu on the desktop. Anybody know why it is doing ...
1
vote
2
answers
1k
views
Redirection in windows shortcuts
I have a batch file that looks like this:
netsh interface dump > net.cfg
And I would like to run the actual command from a shortcut, so I tried all of this (in the .lnk shortcut):
%windir%\...
0
votes
3
answers
513
views
How To Fix " Error LNK2019 : unresolved external symbol ... "
I tried to make a calculator for midterm and final grades of 5 students. 40% of Midterm and 60% of finals in an array a[5][3]. a[5][3] because 5 students, 3 lines because 1 for midterm another for ...
2
votes
1
answer
2k
views
Create Short Cut to EXE without path
I need to create a short cut to internet explorer - iexplore.exe - passing it a URL. This is for an internal product that will only function in IE.
Normally I could just specify the "c:\program ...
31
votes
1
answer
56k
views
Creating a file shortcut (.lnk)
I have been looking for a simple way to create a shortcut to a file in C#, but I've only found external dlls that do that.
It's actually quite surprising, there's no built in way to do that..
Anyway, ...
6
votes
1
answer
900
views
Windows shortcut not displaying correctly in taskbar until reboot
When my MSI package upgrade installation is completed, all shortcuts immediately work as expected, except that the label in the taskbar refers to the binary being executed, rather than giving the ...
0
votes
2
answers
673
views
C++ : Why am i getting Linker errors? [duplicate]
Note that i am using Windows Forms Applications with the .NET
Here is my code:
#pragma once
#include <cstdlib>
#include <Windows.h>
#include <string.h>
#include <stdlib.h>
#...
8
votes
1
answer
4k
views
Produce lnk file on GNU/Linux to transfer to windows
I'll explain my goal first to avoid "XY Problem" misunderstandings.
I want to be able to produce a file (on Linux) that, when downloaded to a Windows machine and double clicked, will open a (ms office,...
1
vote
1
answer
376
views
How I can use Shell32.dll in Silverlight OOB
I'd like to get the target information from a shortcut file using my silverlight OOB app, so I'm going to make the following code to work in my silverlight OOB. It seems I have to used P/Invoke to use ...
0
votes
1
answer
2k
views
Link-Error LNK2020 & 2001 Visual C++ in VS2012 with PCL-Libraries
I´m trying to use the Open Point Cloud library for aligning point-clouds. I use Visual Studio 2012 and created a new Visual c++ project.
The Directory where all the .libs of PCL are stored is added in ...
0
votes
2
answers
135
views
Custom Vector Types
Are there any restrictions on creating vectors with custom classes? Recently, my compiler has been sending a 'LNK1120' warning whenever I attempt the statement:
vector<Team> teamList;
If this ...
4
votes
2
answers
25k
views
Bat file to create a Windows 7 shortcut.lnk on my desktop
How can I create a bat or vbs file to create a Windows 7 compatible desktop shortcut?
I need the bat or vbs file to create the desktop shortcut using the following target and start-in locations (...