更改暂停消息 [英] Changing Pause Message

查看:47
本文介绍了更改暂停消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,所以您知道在CMD中键入 pause 时,它将显示按任意键继续...".我该如何更改以说出按一个键继续..."之类的话?

Ok, so you know how when you type up pause in CMD, it will say 'Press any key to continue...'. How do I change that to say something like 'Press a key to proceed...'?

最后,我正在编码一个批处理文件.我想知道如果发生以下情况怎么办:

Lastly, I was coding a batch file. I want to know what's up if I have something like:

@echo off
cls
pause
pause
pause
pause

当您按下一个键时,它似乎跳来跳去停顿.我很好奇知道跳过暂停的规则.谢谢.

It seems to skip round about to pauses When you press a key. I'm curious as to know the rules of which the pauses are skipped. Thanks.

推荐答案

与Deniz Zoeteman几乎相同,不同之处在于此版本将闪烁的光标显示在与自定义消息相同的行上,这与普通的PAUSE命令相同.Deniz Zoeteman解决方案在消息下方显示闪烁的光标.

Nearly the same as Deniz Zoeteman, except this version displays the blinking cursor on the same line as your custom message, as does the normal PAUSE command. The Deniz Zoeteman solution displays the blinking cursor below your message.

<nul set /p "=Press a key to proceed..."
pause >nul

这篇关于更改暂停消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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