How can I get the Cmd Window to close in the following batch file?
@ECHO OFF
cd "C:\Users\John\AppData\Local\Temp"
start %Temp%
cls
cd "C:\Program Files (x86)\CleanTempDirs"
start "CleanTempDirs.exe"
exit 0
cls
Close CMD Window
Moderator: DosItHelp
Re: Close CMD Window
The first parameter of START that is enclosed into quotation marks will be supposed to be the window title. Pass an empty string as first argument
start "" "CleanTempDirs.exe"
Steffen
start "" "CleanTempDirs.exe"
Steffen
Re: Close CMD Window
you don't need to use CD or CLS either:
Code: Select all
@Start "" "%TEMP%"
@Start "" "%ProgramFiles(x86)%\CleanTempDirs\CleanTempDirs.exe"