.bat File Help Please!

Ive written a bat file. It terminates an application, copies a file from one folder to the other, and opens an application.

BUT! Every time I execute the bat file I get a cmd window.

In the window there is :

success xx apl was terminated with the pid xxxx

1 files copied.

HOW IN THE CAN I ELIMINATE THE CMD WIN AUTOMATICLY?

The end of my bat file is:

:end

exit

HELP PLEASE!

#25418

add a line that ends "cmd.exe" I dont know the command to kill or useage to kill a process but..

TaskMngr /KILL: cmd.exe

#25466

maximus if u could post the entire script, ill c what i can dop 4 u

#25486

Originally posted by maximus-gratus@May 9 2003, 09:19 PM

Ive written a bat file. It terminates an application, copies a file from one folder to the other, and opens an application.

BUT! Every time I execute the bat file I get a cmd window.

In the window there is :

success xx apl was terminated with the pid xxxx

1 files copied.

HOW IN THE CAN I ELIMINATE THE CMD WIN AUTOMATICLY?

The end of my bat file is:

:end

exit

HELP PLEASE!

try adding " > nul" after ur command.

e.g.:

copy c:\cmd.com c:\windows > nul

this won't give you any message. (all message are directed to "nul" device).

#25523

@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

#25525