“start%comspec%/ c script.cmd” vs“start cmd / C script.cmd” [英] "start %comspec% /c script.cmd" vs "start cmd /C script.cmd"

查看:313
本文介绍了“start%comspec%/ c script.cmd” vs“start cmd / C script.cmd”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下命令之间的区别:

start %comspec% /c script.cmd
start cmd /C script.cmd

我需要script.cmd的cmd窗口应该在script.cmd已完成。

I need that cmd window for script.cmd should close automatically when script.cmd is finished.

推荐答案

%comspec% cmd.exe ,这样命令就一样了。除了 / C 是正确的,这将在执行后关闭命令提示符

%comspec% just points to cmd.exe, so the commands to the same thing. Other than that /C is correct, this will close the command prompt after execution

这篇关于“start%comspec%/ c script.cmd” vs“start cmd / C script.cmd”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆