windows 开关机次数脚本
用来统计开关机次数的脚本,直接去d:\count.txt 查看。这个脚本要放到开机启动里面。
@echo off
setlocal
if exist "d:\count.txt" set/p run_count=<"d:\count.txt"
set/a run_count+=1
>"d:\count.txt" echo %run_count%
echo 本脚本运行了 %run_count% 次
ping -n 3 127.0.0.1>nul
endlocal
rem shutdown -s -t 60