Because I am doing certain tasks that need the control panel to be closed if it is open. Killing explorer is not the solution I am looking for as it is also closes the file explorer. I need a general solution that will work across different system languages. Will help if the solution is a c# code.
I have already tried closing control panel using window.close()
which will work if the system language is English (I cannot compare title=="Control panel"
because if the system language is suppose German, then control panel is called something different), as I am doing window.title == "Control Panel"
. This is not a solution. I need some way to close it that will work on all systems.