Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for defaultquickeditmode.bat

(view source code of defaultquickeditmode.bat as plain text)

  1. @ECHO OFF
  2. IF "%~1"==""  GOTO Get
  3. IF "%~1"=="0" GOTO Set
  4. IF "%~1"=="1" GOTO Set
  5. GOTO Syntax
  6.  
  7. :Set
  8. ECHO Before:
  9. REG.EXE Query HKCU\Console /v QuickEdit
  10. ECHO Set new value . . .
  11. REG.EXE Add HKCU\Console /v QuickEdit /t REG_DWORD /d %1 /f
  12. ECHO.
  13. ECHO After:
  14.  
  15. :Get
  16. REG.EXE Query HKCU\Console /v QuickEdit
  17. GOTO:EOF
  18.  
  19. :Syntax
  20. ECHO.
  21. ECHO DefaultQuickEditMode.bat,  Version 1.00
  22. ECHO Get or set the default Quick-Edit mode for console windows
  23. ECHO.
  24. ECHO Usage:  DefaultQuickEditMode.bat  [ 0 ^| 1 ]
  25. ECHO.
  26. ECHO Where:  0    sets default Quick-Edit mode to disabled
  27. ECHO         1    sets default Quick-Edit mode to enabled
  28. ECHO.
  29. ECHO Notes:  Without command line argument the current setting is shown.
  30. ECHO         Changing the default setting will NOT affect the current
  31. ECHO         console, start a new console to use the modified setting.
  32. ECHO         This setting may affect PowerShell consoles too.
  33. ECHO.
  34. ECHO Written by Rob van der Woude
  35. ECHO https://www.robvanderwoude.com
  36.  
  37. EXIT /B 1
  38.  

page last uploaded: 2021-01-27