Windows BATCH: How to disable QuickEdit Mode for individual scripts?

后端 未结 3 1584
小鲜肉
小鲜肉 2020-12-15 12:32

QuickEdit mode can be useful if you wish to quickly highlight and copy text directly from the command prompt instead of redirecting output to a file. However, it has its dra

3条回答
  •  余生分开走
    2020-12-15 13:26

    Slight update for option 1 that worked for me, that doesn't run it twice, on Win10, thanks.

    if exist "c:\temp\consoleSettingsBackup.reg" regedit /S "c:\temp\consoleSettingsBackup.reg" & DEL /F /Q "c:\temp\consoleSettingsBackup.reg" & goto START
    regedit /S /e "c:\temp\consoleSettingsBackup.reg" "HKEY_CURRENT_USER\Console"
    reg add "HKCU\Console" /v QuickEdit /t REG_DWORD /d 0 /f
    start "" "cmd" /c ""%~dpnx0" & exit"
    exit
    
    : START
    rem your commands\scripts here
    
    exit
    

提交回复
热议问题