我有超时命令的问题 [英] I have problem with timeout command

查看:102
本文介绍了我有超时命令的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想如何使用它超时命令

如果我可以在计算动作时取消超时命令,或者我必须等到它完成?



超时/ t 20



坦克你



我尝试过什么:



i尝试了任何选项,但没有成功

i want to how use it "timeout" command
and if i can cancel timeout command while counting action or i must wait to it done?

timeout /t 20

tank you

What I have tried:

i have tried any options ,but no success

推荐答案

如果你是谈到你在CMD提示中看到的超时命令,只需输入timeout /?有关它的帮助。



超时命令将等待您指定的整个时间,或者,默认情况下,任何按键都会提前退出。你不能跳过批处理文件中另一个命令的超时。
If you're talking about the "timeout" command you see in the CMD Prompt, just type "timeout /?" for the help on it.

The timeout command will wait for the entire time you specify, or, by default, any key press to quit early. You cannot skip the timeout from another command in the batch file.


你计算你的时间。



存储当前在你开始计算之前的时间。



每次新的计数后,检查时间。



停止计数当所需时间过去时。



在最初的几次计数之后,AI会让你预测应该花多少时间;因此,由于错过了计数,你没有失控。
You "time" your counting.

Store the current time just before you start counting.

After every new count, check the time.

Stop counting when the required time has elapsed.

After the first few counts, "AI" would have you predict how much time should elapse; so you don't have a "runaway" due to a missed count.


这篇关于我有超时命令的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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