代码错误
本文关键字:错误 代码 | 更新日期: 2023-09-27 18:09:01
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = @"c:'windows'system32'rundll32.exe";
startInfo.Arguments =
@"C:'WINDOWS'System32'shimgvw.dll,ImageView_Fullscreen C:'Users'Sony'Desktop'c.jpg"
我想将图像URI (C:'Users'Sony'Desktop'c.jpg)
指定为字符串变量。那么我需要对startinfo。arguments。
那就先构造吧。
string imagePath = "C:'Users'Sony'Desktop'c.jpg"; // or get this value from however you please
string arguments = string.Format("C:'WINDOWS'System32'shimgvw.dll,ImageView_Fullscreen {0}", imagePath);
startInfo.Arguments = arguments;