windows - 使Windows批处理文件在程序退出时不关闭

标签 windows shell batch-file

当程序结束时,我希望它说“按任意键继续...”这样我就可以滚动浏览输出。

最佳答案

我相信您正在寻找“暂停”命令。它应该要求您按任意键。

您甚至可以更改提示。除了使用 pause 语句,您还可以:

echo "Your message here"
pause > nul

这会删除原始的暂停消息并插入您的暂停消息。

雅各布

关于windows - 使Windows批处理文件在程序退出时不关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1291884/

相关文章:

c++ - 在 Qt 中错误显示 : "Fault Module Name: Qt5Cored.dll" in win 7 and when debugging : "segmentation fault" in centos linux and win 7

swift - 在 Swift 中,如何查看 Process() 传递给 shell 的字符串?

r - 为什么(或何时)Rscript(或更小)比 R CMD BATCH 更好?

android - 从 .bat 调用 Gradle 导致批处理执行停止

string - Windows 批处理文件 - 需要从参数中删除换行符

windows - CMD Echo 命令只保留最后一行文本

在 Windows 上将 EXPAT 编译为静态链接的 .a

linux - 与 cat 相比,Bash while read 循环非常慢,为什么?

java - 将变量从 Java 传递到 Shell 脚本

shell - 计算大列表中的不同元素太慢