Blogger Information
Blog 19
fans 0
comment 1
visits 17977
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
批处理关机、启动exe文件、定时判断
王石磊的博客
Original
1236 people have browsed it

批处理开头

@echo off

按任意键继续

pause

批处理设置title

tille name

重启

shutdown -r -t 30 30秒后自动重启

shutdown -s -t 30 30秒后自动关机

执行某个exe文件之前,需要先进入到目录,如qq.exe在C:/programs/下,则:

cd C:/programs

start qq.exe

强制关闭软件(不需要打开目录)

taskkill /F /IM qq.exe

延迟15秒进入下一步或者按Y进入下一步

choice /t 15 /c YN /d Y

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!