@set my=! @ECHO OFF & SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION ECHO OOOPS !my!>TEST.TXT ENDLOCAL