Yz dock - DOS

Silvio

Argentinean Dogo
Joined
18 Mar 2004
Messages
156
HI all
I have Yzdock and im trying to make a .bat file for:

Close yzdock->start a game->(when i exit the game)start yzdock again.

I made this:

taskkill /IM YzDock.exe
"C:\Ghost Recon\GhostRecon.exe"
"C:\Prgram files\Yz Dock\YzDock.exe"
exit

It works fine but when its all finished, the DOS window remains open.
So, how can i make it close itself when it has finished?
Thanks!
 
I dont know if this could work but why dont u put another taskkill at the end with cmd.exe?
 
This is what I use to close several apps and my dock - then to restart all apps/dock after I close the game.
Insert into a file then drag and drop into dock - change icon. I have this for each game.

@echo off

if [%min%]==[1] goto 2
set min=1
start /min LFS2.bat
goto end

:2
set min=
cls

taskkill /F /IM YzDock.exe /IM yztoolbar.exe /IM ePrompter.exe /IM CoolMon.exe
cd "C:\Games\LFS_DT_0_2A\"
start /wait LFS.exe
cd "C:\yzdck0075_beta"
start YzDock.exe
cd "C:\Program Files\yztbr103"
start yztoolbar.exe
cd "C:\Program Files\ePrompter"
start ePrompter.exe
cd "C:\Program Files\CoolMon"
start CoolMon.exe
:end
exit
 
Plaguewielder: Logical solution, but didnt work, thanks again!
Lynchknot:I dont know much about DOS (dont know what the first part does)but working with your template did the job, (only adjust some stuff).
So thanks both, its FIXED! :D
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back