Cortexian
September 14th, 2009, 04:23 AM
Alright so I've recently been using a batch file with the following contents to launch StarCraft. Basically it closes explorer.exe, launches StarCraft.exe, then launches explorer.exe again after StarCraft closes. This fixes the color issues that come with running StarCraft on Windows Vista or Windows 7:
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"StarCraft.exe"
start explorer.exe
Now, just today I was playing around with a program that lets you run StarCraft at a higher resolution, it's called "StarCraft Resolution Expander 5.1" and it uses a loader to launch the game... Unfortunately this messes up my previous way of launching the game since the loader that you use to launch StarCraft doesn't continue to run after you load it, so explorer.exe restarts before StarCraft is even loaded if I use the following script:
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"InsectLoader.exe"
start explorer.exe
So this is what I need to have happen:
Kill explorer.exe
Run InsectLoader.exe
This will launch StarCraft.exe as well
Restart explorer.exe after StarCraft.exe stops running
So does anyone know a command that monitors to see if a specified executable is running before moving onto the next command in the script or something? If I could do something like the following it would be great:
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"InsectLoader.exe"
if (StarCraft.exe is running)
{
WAIT
}
else
{
start explorer.exe
}
Obviously that wouldn't work, since it's a combination of like three types of scripts, lol.
Help?
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"StarCraft.exe"
start explorer.exe
Now, just today I was playing around with a program that lets you run StarCraft at a higher resolution, it's called "StarCraft Resolution Expander 5.1" and it uses a loader to launch the game... Unfortunately this messes up my previous way of launching the game since the loader that you use to launch StarCraft doesn't continue to run after you load it, so explorer.exe restarts before StarCraft is even loaded if I use the following script:
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"InsectLoader.exe"
start explorer.exe
So this is what I need to have happen:
Kill explorer.exe
Run InsectLoader.exe
This will launch StarCraft.exe as well
Restart explorer.exe after StarCraft.exe stops running
So does anyone know a command that monitors to see if a specified executable is running before moving onto the next command in the script or something? If I could do something like the following it would be great:
taskkill /f /IM explorer.exe
C:\"Program Files (x86)"\"StarCraft"\"InsectLoader.exe"
if (StarCraft.exe is running)
{
WAIT
}
else
{
start explorer.exe
}
Obviously that wouldn't work, since it's a combination of like three types of scripts, lol.
Help?