@echo off & color 0f
:1
if "%1"=="" goto :FullScreen
::还原显示模式
REG Add HKEY_CURRENT_USER\Console /v FullScreen /t REG_DWORD /d %1 /f>nul
::全屏状态下代码段
cls
goto exit
Goto :1
:FullScreen
Set ShowMode=0
for /f "delims=" %%i in ('REG QUERY HKEY_CURRENT_USER\Console /v "FullScreen"') do (
Set ShowMode=%%i
)
Set ShowMode=%ShowMode:~-1%
::设置显示模式为全屏
REG Add HKEY_CURRENT_USER\Console /v FullScreen /t REG_DWORD /d 1 /f>nul
::全屏启动当前Bat脚本
start "" %0 %ShowMode%
:exit
exit
调整1,1,100中的100控制时间长短
@echo off
for /l %%i in (1,1,100) do (
echo exit|cmd /kprompt e100 B8 12 00 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul
)
exit
有更简单的方法,显示器关掉
右手@显示器电源 then 按下去