How do I understand the 3 lines batch script?

Posted by Runner on Stack Overflow See other posts from Stack Overflow or by Runner
Published on 2010-04-24T10:51:39Z Indexed on 2010/04/24 10:53 UTC
Read the original article Hit count: 183

Filed under:
|
ECHO @ECHO OFF ^& (IF EXIST "%%~dp0%~n1.swf" (DEL "%%~dp0%~n1.swf")) ^& %mxmlcPath% %opts% -file-specs "%%~dp0%~nx1" ^& (IF EXIST "%%~dp0%~n1.swf" (CALL "%%~dp0%~n1.swf") ELSE (PAUSE)) > "%~dpn1.bat"
REM Immediately execute the generated bat
@ECHO on
CALL "%~dpn1.bat"

It's really a mess for me(like ECHO @ECHO OFF,what's that intended for?), can someone elaborate it?

© Stack Overflow or respective owner

Related posts about batch

Related posts about syntax