79629295

Date: 2025-05-19 18:44:28
Score: 2
Natty:
Report link

The following seems to work fine in Windows 11 and should work in prior OS's. Later (in the same cmd file) you can say @echo %oldecho%

@echo > %TMP%\echo.tmp
@for /f "tokens=3 delims=. " %%e in (%TMP%\echo.tmp) do @set oldecho=%%e
@del %TMP%\echo.tmp
@echo was %oldecho%
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: JMunch