Mady Mady - 2 months ago 18x
Java Question

Create shortcut in windows programmatically

Is there a way to create link in windows?

I found samples that use

or one has to do download

I need a simple solution. Is that possible?


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?