ファイルのプロパティ ウィンドウを表示するコードがありました。
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"C:\Users\nyongrand\Desktop\Internet Download Manager.lnk";
psi.Verb = "properties";
Process process = Process.Start(psi);
process.WaitForExit(); //This give me exception, Object reference not set to an instance of an object.
私が望むのは、ウィンドウのプロパティが閉じられるまで待機することです。コードが閉じられた場合、プロパティウィンドウも閉じられるため、コードがプロパティウィンドウが閉じられるのを待つことができるか、コードが終了できるかの間の解決策が必要ですプロパティウィンドウを閉じずに。