How to automatically close command prompt window after batch file execution.
I tried command Start "" & Exit 0
but it's not working.
Start ""
@ECHO OFF
C:
cd c:\wamp\www\phpfile
php genCSV.php
"c:\program files\coreftp\coreftp.exe" -s-O -site UPLH -u D:\Files\out\*.* -p /Import/
del /Q c:\wamp\www\txt\*.*
I used "exit /B" at the of script as per Joey's below answer.
If you really want to close even an interactive session, then just use exit
. Generally though, e.g. from Explorer, batch files are started with cmd /c
which will close the console after the batch file completes.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments