Recently I managed to get my hands on a old Starcraft CD that a friend of mine was throwing out and, having always enjoyed playing Starcraft, installed it on my Windows 7 PC, updated it with the latest patches and tried to run it. It had some problems and crashed a few times, but I found a solution that said simply close all explorer processes, run starcraft and run explorer again. So I wrote a little Batch File:
@ECHO OFF REM RunStartcraft.bat REM Closes Explorer, runs StarCraft then starts Explorer again title Run Starcraft echo Stopping Explorer... taskkill /f /im explorer.exe echo Running Starcraft... StarCraft.exe echo Restarting Explorer... start explorer.exe
and this works.
However what I don't like about this batch file is that it kills all Explorer processes instead of closing them nicely (including the base Explorer process). Is it possible to close Explorer nicely (like shift-right-clicking the start menu and clicking 'Exit Explorer') without killing the processes in a Batch file? Or does it not really matter if I kill all the explorer processes?
EDIT: I'm not trying to get a list of running Explorer processes, but I'm wondering whether it's possible to exit the Explorer process(es) gracefully without having to abruptly Kill/End the Process using taskkill.