I already read up on the problem, that explorer tasks are behaving a little weird when more then one is opened, because I would have to remove the main explorer window if I wanted do remove a certain one.
I'm currently trying to achieve it like this, but it's obviously not working:
private Process explorerProcess = null;
private void startExplorer(){
explorerProcess = Process.Start("explorer.exe", @*path*);
}
private void closeExplorer(){
explorerProcess.Kill();
}
I also tried .Hide(), .Close() and so on but nothing seems to work. I don't want to loop all explorer processes and end them all, because when I want to get it done smoothly, not by closing all processes and letting the user notice it as soon as I kill the explorer.exe which is responsible for the start menu.
There must be any way I hope...