110,539
社区成员
发帖
与我相关
我的任务
分享
System.Diagnostics.Process.Start("地址");
//这么写vs报错
//与“System.Diagnostics.Process.Start(System.Diagnostics.ProcessStartInfo)”最匹配的重载方法具有一些无效参数
//参数“1”: 无法从“string”转换为“System.Diagnostics.ProcessStartInfo”
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.FileName = @"C:\Documents and Settings\Administrator\桌面\迅雷7.lnk";
startInfo.CreateNoWindow = true;
process.StartInfo = startInfo;
process.Start();