【发布时间】:2015-12-12 07:19:10
【问题描述】:
如何在批处理文件执行后自动关闭命令提示符窗口。
我尝试了命令Start "" & Exit 0,但它不起作用。
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\*.*
解决方案
根据 Joey 的以下回答,我在脚本中使用了“exit /B”。
【问题讨论】:
-
您需要
start ""做什么? -
查看In a Windows batch file, can you chain-execute something that is not another batch file? 上的答案,它详细解释了如何在退出或不退出命令处理的情况下退出批处理文件处理,即关闭控制台窗口。
标签: windows batch-file cmd