如何在批处理文件运行后,关闭命令行窗口? [英] how to close command line window after a batch file running?

查看:1550
本文介绍了如何在批处理文件运行后,关闭命令行窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个批处理文件,后在命令行运行将继续开放,我需要它被关闭。

有反正我可以做什么?

这是批处理文件的样子,我派桌面上的快捷方式。

  tncserver.exe C:\\工作-P4 -b57600 -r -cFE -tTNC426B
出口


解决方案

它应该自动关闭,如果它不就意味着它是停留在第一个命令。

在你的榜样,它应该关闭或者自动(不包括退出)或明确的退出。我认为这个问题是你正在运行没有返回正确的第一个命令。

作为一个工作你周围可以尝试使用

 启动tncserver.exe C:\\工作-P4 -b57600 -r -cFE -tTNC426B

I have a batch file, after running the command line will stay open, i need it to be closed.

is there anyway i can do?

this is what batch file looks like, and i sent a shortcut on desktop.

tncserver.exe C:\Work -p4 -b57600 -r -cFE -tTNC426B
exit

解决方案

It should close automatically, if it doesn't it means that it is stuck on the first command.

In your example it should close either automatically (without the exit) or explicitly with the exit. I think the issue is with the first command you are running not returning properly.

As a work around you can try using

start "" tncserver.exe C:\Work -p4 -b57600 -r -cFE -tTNC426B

这篇关于如何在批处理文件运行后,关闭命令行窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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