[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
回复 5# hlzj88
  1. set reg_key="HKCU\Console\%%SystemRoot%%_system32_cmd.exe"
  2. reg delete %reg_key% /f 2>nul
复制代码
保存为bat运行就可以恢复

TOP

本帖最后由 bbaa 于 2018-1-9 22:10 编辑

回复 5# hlzj88
  1. @echo off
  2. @if Not "%1"=="BigFont" (Goto :BigFont)
  3. COLOR 0A
  4. for /f tokens^=1^,2^ delims^=^"^" %%a in ('wmic nicconfig get IPAddress /value ^| findstr /i "IPAddress=[^]"') do (set "ip=%%b")
  5. echo, 本机IP: %ip%
  6. pause>nul&exit
  7. :BigFont
  8. reg query "HKCU/Console/BigFont">nul 2>nul&&(
  9. start "BigFont" %ComSpec% /c %~f0 BigFont&exit /b
  10. )||(
  11. set ran=%random%
  12. more +16 %~f0>%temp%\%ran%BigFont.reg
  13. reg import "%temp%\%ran%BigFont.reg">nul 2>nul||(echo 注册表导入失败,请你确定允许导入注册表&pause>nul&exit)
  14. del /f /q "%temp%\%ran%BigFont.reg">nul 2>nul
  15. start "BigFont" %ComSpec% /c %~f0 BigFont&exit /b
  16. )
  17. Windows Registry Editor Version 5.00
  18. [HKEY_CURRENT_USER\Console\BigFont]
  19. "FaceName"="新宋体"
  20. "FontFamily"=dword:00000036
  21. "FontSize"=dword:00180000
  22. "FontWeight"=dword:00000190
  23. "WindowSize"=dword:00020019
复制代码
代码共23行,如测试成功,请不要忘记给我加分
注:本代码只对当前bat有效
1

评分人数

    • hlzj88: 嗯嗯,隐藏窗口用的上。技术 + 1

TOP

返回列表