如何保持运行CMD打开一个.bat文件脚本后, [英] How to keep cmd running after opening a .bat file script
本文介绍了如何保持运行CMD打开一个.bat文件脚本后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上我在记事本写了一个剧本,并将其保存为的.bat
文件。它所做的是改变目录。这样写的:
Basically I have written a "script" in notepad and saved it as a .bat
file. All it does is to change directory. Written like this:
cd C:\Users\Hello\Documents\Stuff
它确实改变了目录,但我想写后,更多的,在 CMD
。防爆。选择要运行的程序。它看似简单,但我无法弄清楚。我读暂停
,但它只是等待一个键,然后关机。
It does change the directory, but i want to write more after that, within the cmd
. Ex. choose a program to run. It seems simple, but i can't figure it out. I read about pause
, but it just waits for a key and then closes down.
推荐答案
将 CMD / K
对剧本的最后一行。
这篇关于如何保持运行CMD打开一个.bat文件脚本后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文