保持CMD BAT文件执行后打开 [英] Keep CMD open after BAT file executes
本文介绍了保持CMD BAT文件执行后打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这样一个bat文件:
I have a bat file like this:
ipconfig
这会打印出IP信息到屏幕上,但用户才能阅读这些信息CMD关闭它的自我。
That will print out the ip info to the screen, but before the user can read that info CMD closes it's self.
我相信CMD假设脚本已经完成,所以它关闭。
I believe that CMD assumes the script has finished, so it closes.
如何保持打开CMD脚本完成后?
谢谢!
How do I keep CMD open after the script is finished? Thanks!
推荐答案
根据您如何运行命令,你可以把/ K CMD后,保持窗口打开。
Depending on how you are running the command, you can put a /K after CMD to keep the window open.
cmd /k my_script.bat
这篇关于保持CMD BAT文件执行后打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文