下载PDF文件下载PDF文件
X
这篇文章由我们训练有素的编辑和研究团队共同创作,他们对文章的准确性和全面性进行了验证。
How.com.vn的内容管理团队会严密监督编辑人员的工作,确保每篇文章都符合我们的高质量标准要求。
这篇文章已经被读过8,558次。
批处理文件需要延迟操作?在用户表明准备好继续之前,你可以将批处理文件设置为等待,或者在自动处理之前,将批处理文件设置为等待一定时间。你要根据程序需要及系统要求来选择使用哪种方法。
步骤
- 用PING指令向另一台计算机发送消息并等待回复,强迫程序等待。你必须ping一个无效的IP地址,否则计算机会如实回复,这样延迟时间不够长。不能ping一个无效的主机名,比如madeup.example.com,否则会显示错误消息,而不是延迟。
- 在你希望延迟的位置插入PING 指令。-n 1参数对原始指令添加第二个ping指令。两个ping指令之间的等待时间就是延迟时间,由-w 30000指定。延迟时间必须以毫秒为单位。[2] 在结尾输入>nul,向“虚拟设备”发送指令输出。广告
参考
这篇文章对你有帮助吗?
⚠️ Disclaimer:
Content from Wiki How 中文 language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.
广告