2

I want to use the windows Create Shortcut Wizard to create the short cut from my C# (WinForm) application.

I want to give the target location to Wizard to save the .lnk file.

enter image description here

Sonal Satpute
  • 490
  • 3
  • 8
  • if you want to create shortcut only then you can create ir dynamicallty from here http://stackoverflow.com/questions/1501608/how-do-you-create-an-application-shortcut-lnk-file-in-c-sharp-with-command-li/1501727#1501727 – Anant Dabhi Apr 10 '14 at 12:11
  • @GujjuDeveloper : Yeah I can below is the code spinet I have implemented but we client requirement to use the Create Shortcut Wizard. here is the code ----> public void CreateShortcut(string file, string shortcurName) { WshShellClass wshShell= new WshShellClass(); IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut) wshShell.CreateShortcut(FAVOURITES + shortcurName.Trim() + SHORTCUT_EXTENSION); shortcut.TargetPath = file; shortcut.Save(); } – Sonal Satpute Apr 10 '14 at 12:13
  • Have you seen this question? http://stackoverflow.com/questions/234231/creating-application-shortcut-in-a-directory – NullReference Apr 10 '14 at 12:27
  • @NullReference : The functionality using code is already in-place, but want to use 'Create Shortcut Wizard', so user can get the families windows UI interface. – Sonal Satpute Apr 14 '14 at 05:22

0 Answers0