我在 Windows 11 中使用 C#
。PhotoViewer 是我 PC 上 AVI 文件的默认应用程序。我正在尝试使用“Process.Start”方法启动带有 AVI 文件的 PhotoViewer,如下所示:
MessageBox.Show(fn + " exists? " + File.Exists(fn));
Process.Start("@" + fn);
MessageBox 输出为“d:\dscf0001.avi 存在吗?真”。
Process.Start 引发 Win32Exception 并显示消息“系统找不到指定的文件”。
我究竟做错了什么?