Batch file to open gproxy and warcraft at oncehi i made a batch file for myself to open gproxy and warcraft at once and then close it and i want to share it. i use
"GProxy ++ stefos007 for eurobattle.net" and it works on my windows 7
setup:1. make sure you have working gproxy copied in warcraft directory in subfolder "Stefos Gproxy"
2. open notepad and copy there this commands:
start /MIN /D "Stefos Gproxy" gproxy.exe
echo gproxy loaded
euroloader.exe
echo euroloader loaded
ping -n 10 127.0.0.1 > nul
:loop
ping -n 3 127.0.0.1 > nul
tasklist /FI "IMAGENAME eq war3.exe" 2>NUL | find /I /N "war3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
taskkill /F /T /IM gproxy.exe
echo gproxy killed, goodbye!
3. file -> save as
4. save as type: all files
5. file name: gproxyloader.bat
6. save it to warcraft directory
7. now when you want to play, just launch gproxyloader.bat in your warcraft directory. you can make link on desktop if you want
how does it work?start /MIN /D "Stefos Gproxy" gproxy.exe
echo gproxy loaded
euroloader.exe
echo euroloader loadedthis opens gproxy in directory "Stefos Gproxy" and then starts warcraft by euroloader.exe
ping -n 10 127.0.0.1 > nulthis ping makes batch wait 10 seconds before checking if war3.exe is running
:loop
ping -n 3 127.0.0.1 > nul
tasklist /FI "IMAGENAME eq war3.exe" 2>NUL | find /I /N "war3.exe">NUL
if "%ERRORLEVEL%"=="0" goto loopthis loop is checking every 3 seconds if warcraft is running. when warcraft is closed, then next command is executed:
taskkill /F /T /IM gproxy.exe
echo gproxy killed, goodbye!gproxy is closed. well, it is forced to do
