联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul chcp 437>nul graftabl 936>nul
Originally posted by slore at 2007-9-22 19:06: 给BAT一个参数…… 通过参数判断是第一次还是第2次…… 没有参数的时候修改注册表……然后exit调用自己+参数
REG QUERY HKEY_CURRENT_USER\Console /s|findstr "FullScreen"
REG QUERY HKEY_CURRENT_USER\Console\%%SystemRoot%%_system32_cmd.exe /s|findstr "FullScreen"
Originally posted by dosmania at 2007-9-23 00:24: TO all above:REG QUERY HKEY_CURRENT_USER\Console /s|findstr "FullScreen"这样的代码我还不会判断么```其实你这里写错了 ...
@echo off if "%1"=="" goto :FullScreen echo welcom to full screen pause goto :eof :FullScreen reg add HKEY_CURRENT_USER\Console /v FullScreen /t REG_DWORD /d 1 /f start "" "%0" 1 exit
@echo off if "%1"=="" goto :FullScreen ::还原显示模式 reg add HKEY_CURRENT_USER\Console /v FullScreen /t REG_DWORD /d %1 /f>nul ::全屏状态下代码段 echo Welcome to Full Screen pause goto :EOF :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
@echo off if "%1"=="" goto :FullScreen ::还原显示模式 REG Add HKEY_CURRENT_USER\Console /v FullScreen /t REG_DWORD /d %1 /f>nul ::全屏状态下代码段 echo Welcome to Full Screen echo 按任意键退出. . . pause>nul Goto :End :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% :End exit Slore发表于: 2007-09-23 13:59