Yz dock - DOS

Silvio

Argentinean Dogo
#1
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!
 
P

PlagueWielder

Guest
#2
I dont know if this could work but why dont u put another taskkill at the end with cmd.exe?
 

lynchknot

OSNN Senior Addict
#3
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
 

Silvio

Argentinean Dogo
#4
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 posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,299
Members
89,016
Latest member
Poseeut