How To Create A Shortcut (.lnk) in Code
-
Hi all, I'm writing a custom installer app and need to create shortcuts to go in the users startup directory. I need to know how to create a shortcut file in code, i'm sure it can be done but for the life of me I can't find anything telling me how. Please help. Kev
-
Hi all, I'm writing a custom installer app and need to create shortcuts to go in the users startup directory. I need to know how to create a shortcut file in code, i'm sure it can be done but for the life of me I can't find anything telling me how. Please help. Kev
You must include a Reference to the Windows Scripting Library. In the Add Reference dialog, click the Com Tab and add the Windows Scripting Host Object Model. use "using IWshRuntimeLibrary;" make a shortcut a la IWshShortcut shortCut = new IWshShortcut_ClassClass(); and start playing -spif2001
-
You must include a Reference to the Windows Scripting Library. In the Add Reference dialog, click the Com Tab and add the Windows Scripting Host Object Model. use "using IWshRuntimeLibrary;" make a shortcut a la IWshShortcut shortCut = new IWshShortcut_ClassClass(); and start playing -spif2001