Click here to Skip to main content
15,891,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I dont want to use "Windows Scrip Host" and "VBSTKIT.DLL" in VC#2008 to create shortcut? My idea is: which library besides two libraries above that contains an API to create shortcut file for my app? What API is that? Thanks.
Posted
Updated 16-Sep-12 22:38pm
v3

1 solution

I'm not 100% sure what do you call a "shortcut" here, but, without WSH, it seems to be that what you want is using ShellLink object. If so, you can use the .NET wrapper for it. Please see:
http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Creating_and_Modifying_Shortcuts/article.asp[^].

See also the first answer to this question:
http://stackoverflow.com/questions/234231/creating-application-shortcut-in-a-directory[^].

If this is what you want, I would basically agree with your idea of not using WSH — I mean, for this very purpose.

—SA
 
Share this answer
 
v3
Comments
Maciej Los 18-Sep-12 15:44pm    
Short and to the point, 5!
Sergey Alexandrovich Kryukov 18-Sep-12 16:10pm    
Thank you, Maciej.
--SA
Andrewpeter 18-Sep-12 22:02pm    
It is my need! Thank you very much. Vote 5 for you.
Sergey Alexandrovich Kryukov 18-Sep-12 22:27pm    
Great. You are welcome.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900