// Open explorer in user temporary directory OpenExplorerInDir(System.IO.Path.GetTempPath()); ... private void OpenExplorerInDir(string dir) { string exe = "explorer.exe"; //Driectory.Exists Process exeProcess = new Process(); exeProcess.StartInfo.FileName = exe; exeProcess.StartInfo.Arguments = "/e,/root," + dir; exeProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; exeProcess.Start(); }
No comments:
Post a Comment