If I write process, close, explorer.exe, so as to remove the windows environment, it works, but explorer reloads again. It's not the same result as when you finish the explorer task from the task admin. How can I fix this in my script?
Kill explorer from script
6 replies to this topic
I need this for a completelly hidden shutdown from a program I have. I use qsd.exe and the shutdown is totally hidden (my program loads with Windows from userinit, so explorer is not loaded). However, if I exit my program (I have 3 options there: cancel, load Windows and shutdown) and explorer is loaded and then I decide to reload the program, and then to shutdown from there, explorer is shown for a moment at the moment of shutdown.
#3 - Posted 22 May 2010 - 08:10 AM
run, %comspec% /c taskkill /f /IM explorer.exe
That kills explorer, but the command window is shown for a moment. I wonder if using a fullscreen back gui could fix that...
It doesn't kill it for mine... But wouldn't a simple Hide parameter in the Run command take care of that?
run, %comspec% /c taskkill /f /IM explorer.exe[color=red],, Hide[/color]
Not sure. Just a thought. .
#6 - Posted 22 May 2010 - 10:20 AM