简体   繁体   English

批处理脚本在执行后不会关闭cmd

[英]Batch script does not close cmd after execution

I have the below code which starts the siebel tools from a batch script: 我有以下代码从批处理脚本启动siebel工具:

@ECHO OFF
D:
CD D:\Siebel\8.1.1.16.0\Tools\BIN\
ECHO Starting Siebel Tools
siebdev.exe /c D:\Siebel\8.1.1.16.0\Tools\CFG\tools.cfg /d DataSrc /u ADMIN /p PASSWORD
cmd

But this does not close the command prompt. 但这不会关闭命令提示符。 Please help. 请帮忙。

this alone should be fine, without cmd in the end line 仅此一项就可以了,在最后一行没有cmd

@ECHO OFF
CD /d D:\Siebel\8.1.1.16.0\Tools\BIN\
ECHO Starting Siebel Tools
siebdev.exe /c D:\Siebel\8.1.1.16.0\Tools\CFG\tools.cfg /d DataSrc /u ADMIN /p PASSWORD

just to add, /d can be used after cd instead of D: and then using cd 只是要添加,/ d可以在cd之后而不是D:之后使用,然后使用cd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM