Mady Mady - 4 months ago 39
Java Question

Create shortcut in windows programmatically

Is there a way to create link in windows?

I found samples that use

VBScript
or one has to do download
Shortcut.exe
.

I need a simple solution. Is that possible?

Answer

Well, I had to use Shortcut.exe to create shortcut but actually what I needed was a HardLink to a folder but Shortcut.exe would create a SoftLink.
Eventually I used junction.exe to create the HardLink.
Check this post for more information How to create symbolic links in Windows?