简体   繁体   English

如何强制计算机不重新启动

[英]How to force computer not to restart

I am writing batch script to automate the product testing. 我正在编写批处理脚本以自动化产品测试。 After product finished installation, I need to force computer NOT to restart. 产品完成安装后,我需要强制计算机不要重新启动。 Is there any way to do that with batch script? 有什么办法可以使用批处理脚本吗? Thank for reading 感谢阅读

Try shutdown -a . 尝试shutdown -a It will abort the shutdown process. 它将终止关机过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM