Windows批处理:模拟为`timeout`命令 [英] Windows batch: analogue for `timeout` command

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

问题描述

我试图找出如何限制一个程序的执行时间的的Windows批处理文件。有什么样的Unix 暂停命令?
请指教。

I'm trying to find out how to limit a program execution time within a Windows batch file. Is there something like Unix timeout command? Please advise.

推荐答案

我刚安装 Cygwin的,并使用UNIX从分布式的暂停命令。

I just installed Cygwin and use unix-style timeout command from the distribution.

这篇关于Windows批处理:模拟为`timeout`命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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