how to create short cut in vb.net.please help me.how to do?
Regards,
Narasiman P
How to create short cut in vb.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted Jun 22, 2012, 12:33 AM EDT
Here is some C# code to create a shortcut to a folder. These are actually .lnk files which are handled in a special way by Windows Explorer.
First include a reference to C:\Windows\System32\wshom.ocx
Second, include the following using statement :-
using IWshRuntimeLibrary;
Third, Here is the code :-
Source : http://alquistconsulting.blogspot.in/2006/12/create-lnk-file-in-c.html