this command does not close cmd windows: process.Kill(); process.Close();
- User
this command does not close cmd windows: process.Kill(); process.Close();
- Assistant
To properly close a Command Prompt (cmd) window that you started from a .NET application using the
System.Diagnostics.Processclass, you need to ensure a few things are done correctly. The code snippets you provided () may not be sufficient on their own, or they may not be used in the correct context.