I have a program that restarts explorer.exe
Here is my code for killing explorer.exe
Process[] process = Process.GetProcessesByName("explorer.exe");
foreach (Process theprocess in process) {
theprocess.Kill();
}
The following code work successfully and stops explorer.exe
Here is my code for starting explorer.exe
Process.Start("explorer");
This also works, but it also creates a Windows Explorer window as well as starting the explorer.exe
process.
My question is, how can I start explorer.exe
without creating a Windows Explorer window?Immediately closing the explorer window could also be considered as an answer.