@echo off
set t=60
set /p t=请输入等待时间(默认60秒):
echo %t%
ping 127.0.0.1 -n %t% > nul
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
Pause
%0
一个定时自动关闭显示器的bat批处理脚本
于 2023-07-16 06:56:46 首次发布