Create shortcut in windows programmatically

后端 未结 3 541
失恋的感觉
失恋的感觉 2021-01-19 02:48

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 solutio

3条回答
  •  暖寄归人
    2021-01-19 03:44

    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 https://stackoverflow.com/questions/46885/how-to-create-symbolic-links-in-windows

提交回复
热议问题