Revision: 16833
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 17, 2009 16:30 by delm
Initial Code
using IWshRuntimeLibrary; ... public static void CreateShortcut(string linkFilename, string description, string targetPath, string iconLocation, int iconIndex) { IWshShortcut_Class shortcut = (IWshShortcut_Class)new IWshShell_ClassClass().CreateShortcut(linkFilename); shortcut.Description = description; shortcut.TargetPath = targetPath; shortcut.IconLocation = iconLocation + "," + iconIndex; shortcut.Save(); } ... Call that method like this: CreateShortcut(linkFilename, description, targetPath, targetPath, 0);
Initial URL
http://www.eggheadcafe.com/community/aspnet/14/26241/here-is-how-to-do-it-usin.aspx
Initial Description
Se requiere hacer referencia a la dll `Interop.IWshRuntimeLibrary`.
Initial Title
Crear acceso directo
Initial Tags
Initial Language
C