选择 COM 选项卡并选择 Windows Script Host Object Model
Code:
WshShell shell = new WshShell(); IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut("C:\Program Files (x86)\gnnt\xxxx\Trader\xxxx.lnk"); shortcut.TargetPath = @"C:Program Files (x86)gnntxxxxTraderAppUpdaterCom.exe"; shortcut.WorkingDirectory = "C:\Program Files (x86)\gnnt\xxxx\Trader\"; shortcut.WindowStyle = 1; shortcut.Description = "xxxx"; shortcut.IconLocation = @"C:Program Files (x86)gnntxxxxTraderAppUpdaterCom.exe,0"; shortcut.Save(); Process.Start(@"C:Program Files (x86)gnntxxxxTraderxxxx.lnk");