Board logo

标题: [其他] PauseWithTimeout - 带倒计时的“按任意键继续” [打印本页]

作者: z7r3kslwtj5w_px    时间: 2010-7-26 21:35     标题: PauseWithTimeout - 带倒计时的“按任意键继续”

C:\>PauseWithTimeout
Usage:
    PauseWithTimeout n
where n is the number of seconds to wait before continuing
PauseWithTimeout is produced by www.cryer.co.uk.

C:\>PauseWithTimeout 120
Press any key to continue . . . 106


软件主页: http://www.cryer.co.uk/downloads/pausewithtimeout/

http://bcn.bathome.net/s/tool/index.html?key=PauseWithTimeout
作者: canyuexiaolang    时间: 2010-7-26 21:41

用啥个语言写的?
作者: raymai97    时间: 2010-7-27 10:38

>nul 真好用!加个 >nul就能达成pause+hide "press any key to continue"+timeout function!
不错的软件,以后不必一直ping不停了。
作者: raymai97    时间: 2010-7-27 11:25

做了一个大小更小的。
帮忙找bug。
注:其实是用ping,打入timeout bathome以得到代码。

http://bcn.bathome.net/s/tool/index.html?key=timeout
作者: raymai97    时间: 2010-7-27 11:30

意外找到一个东西,我的电脑本身就有timeout.exe。看来我的用不着了。
作者: nf99290    时间: 2010-7-28 00:36

WINDOWS7的命令行下有这个类似功能的,可惜,在XP的命令行下测试不能运行。

C:\Users\a>timeout /?
TIMEOUT [/T] timeout [/NOBREAK]
描述:
    这个工具接受超时参数,等候一段指定的时间(秒)或等按任意键。它还接受
    一个参数,忽视按键。
参数列表:
    /T        timeout       指定等候的秒数。有效范围从 -1 到 99999 秒。
    /NOBREAK                忽略按键并等待指定的时间。
    /?                      显示此帮助消息。
注意: 超时值 -1 表示无限期地等待按键。
示例:
    TIMEOUT /?
    TIMEOUT /T 10
    TIMEOUT /T 300 /NOBREAK
    TIMEOUT /T -1

[ 本帖最后由 nf99290 于 2010-7-28 00:39 编辑 ]
作者: defanive    时间: 2010-7-28 00:43     标题: 回复 6楼 的帖子

这是肯定的,Win7下程序手64位的,XP肯定运行不了。。。
其实可以用汇编写一个更小的,2-3KB左右。。。
作者: zhoubin    时间: 2010-11-13 20:50

谢谢,楼主。。。。
64位系统的timeout怎么写呢???




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2