Что делает этот код? @echo off&:: Want something special Smile SetLocal…
- User
Что делает этот код? @echo off&:: Want something special Smile SetLocal EnableDelayedExpansion EnableExtensions if "%~1"=="" Call :SetBuffer Set Color 9A md "%temp%_bin2" 2>nul pushd "%temp%_bin2"
for /f "delims=[]" %%N in ('find /n "My_Beautiful_Rose" ^<"%~f0"') do set /a num=%%N for /F "delims=" %%A in ('more +%num% ^<"%~f0"') do ( Set /a n+=1 if !n! LEQ 20 Call :ColorText "%%A" "1C" if !n! GTR 20 if !n! LEQ 27 Call :ColorText "%%A" "1D" if !n! GTR 27 if !n! LEQ 32 Call :ColorText "%%A" "1A" if !n! GTR 32 if !n! LEQ 45 Call :ColorText "%%A" "1A" if !n! GTR 45 if !n! LEQ 49 Call :ColorText "%%A" "1E" if !n! GTR 49 Call :ColorText "%%A" "08" )
popd Call :SetBuffer Recover rd /s /q "%temp%_bin2" del Reg_Console_backup.reg>nul pause>nul goto :eof
:ColorText %1-in.Text %2-in.Color.HEX echo.>"%~1" findstr /V /a:%~2 "1" "*" 2>nul del /f "%~1" Exit /B
::Setting screen buffer width = current width +2 to hide ":" in the Findstr command. ::However, the settings are static now. Needs few more code to recode x10 to x16 scales. :SetBuffer %1-in.Operation.Set.or.Recover if "%~1"=="Recover" (2>nul 1>&2 reg import Reg_Console_backup.reg& exit /B) ::making backup reg export "HKCU\Console" Reg_Console_backup.reg ::making permanent backup echo n| copy /-Y Reg_Console_backup.reg Reg_Console_backup_permanent.reg ::Creating modifications to registry ( echo Windows Registry Editor Version 5.00 echo [HKEY_CURRENT_USER\Console%%SystemRoot%%_system32_cmd.exe] echo "ScreenBufferSize"=dword:3e80051 echo "WindowSize"=dword:0038004e ) > Reg_Console_Mod.reg ::Apply it reg import Reg_Console_Mod.reg del Reg_Console_Mod.reg ::Restarting CMD on the another thread using new environment start cmd /c "%~f0" next Exit
:My_Beautiful_Rose _ 'M, .mM' IMIm_ ,mIM' ,MI''IM,mIMm 'IMmm, ,IM____IM'IM, ,m' 'IMMIMMIMm_,IM''IM''==mm,mIM' ,mIM''MIM'__IM,,mIMIM' ,mMIMIMIIMIMM,,mM',IMIMIMIMMM' IMM,'IMM,,M',IIM''MM, 'IMM,'IM,,M',IM''IM, 'IMm_____'IMMM____,IM''IM, 'Mm____'IM______MM''IM, IM,IM______MM'IM, MM,_______IM,'IM_______________'IM 'IM,___.,mmmIMMMMMMMm,_ IM,,IIMM'....,mMM' 'IMMIMIMMIMM,,IMM'.....,mMMMMMMMM' ,IM_...,mMMMMMMMMM' IM...,mIMM, IMM' ,mIM'..'IM,..M, , ,IMMM'.'IMM...(.--.;mIMIMIM,...((),mIM' IMMM , 'IMMMM' '''IMM , '' __IMM , , IMM'' ,
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.