This is a single windows batch file i created to automatically close and open the dock via a game or via a shortcut to the batch file.
For games all you have to do is
1) point the dock icons "Link to:" value to the dock batch file eg C:\Dock.bat,
2) make the "Arguments:" value point to the game executable eg C:\Games\Quake\Quake.exe and
3) make the "Work Folder:" value point to the games working folder eg C:\Games\Quake\
Heres the batch file---->
REM --------Dock.bat BEGIN---------
IF NOT ""=="%1" GOTO process
tasklist /FI "IMAGENAME eq yzdock.exe" | find /i /c "yzdock.exe" > nul
if not errorlevel=1 goto kill
goto open
:kill
ECHO KILL
taskkill /im yzdock.exe
GOTO END
:open
ECHO OPEN
REM Change this value to point to where your YzDock.exe is located
START /b C:\Progra~1\yz\yz_dck0083\YzDock.exe
GOTO END
:process
ECHO PROCESS
taskkill /im yzdock.exe
%1
GOTO open
:END
exit
REM --------Dock.bat END---------
Aqua-Soft Forums