//設置壹個快捷方式
IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShellClass();
IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut("c:\\a.lnk");
shortcut.TargetPath = "notepad.exe";
shortcut.Arguments = "c:\\a.txt";
shortcut.Description = "My Shortcut";
shortcut.Hotkey = "CTRL+SHIFT+N";
shortcut.IconLocation = "notepad.exe, 0";
shortcut.Save();
//得到快捷方式屬性
shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut("c:\\x.lnk");
MessageBox.Show(ws.Description); //如果是取目標路徑的話,這個Description可能應該是TargetPath