1
s += "<p style=\"text-align: left;\"><a href=\"javascript:window.print()\">PRINT</a></p>";
System.IO.File.WriteAllText(@"CheckForm.html", s);
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.FileName = "explorer.exe";
startInfo.Arguments = "CheckForm.html";
System.Diagnostics.Process.Start(startInfo);

Windows 7 で C# Windows アプリケーションを開こうとしたときに問題が発生しましたが、それ以外は問題ありません。

上記のコードでは、Windows 7 で explorer.exe を開くことができませんでした。

助言がありますか?

4

2 に答える 2