/// <summary>
///
/// </summary>
/// <param name="FileStreamPath">程序所在路径</param>
public void CreateShortCut(string FileStreamPath)
{
string DesktopPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);//得到桌面文件夹
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(DesktopPath + "\\WClient.lnk");//要创建的快捷方式
//shortcut.TargetPath = @"D:\\kuaijie\\";
shortcut.TargetPath = FileStreamPath;
shortcut.Arguments = "";// 参数
shortcut.Description = "我用C#创建的快捷方式";
shortcut.WorkingDirectory = FileStreamPath;//程序所在文件夹,在快捷方式图标点击右键可以看到此属性
//shortcut.IconLocation = @"D:\Skinico\kuajie.icon,0";//图标路径
shortcut.Hotkey = "CTRL+SHIFT+Z";//热键
shortcut.WindowStyle = 1;
shortcut.Save();
this.Close();
}