English 中文(简体)
我如何理解三条打字的文字?
原标题:How do I understand the 3 lines batch script?
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"

这对我来说确实是一件大事(例如:ECHO @ECHO OFF,什么是打算做的?),有人能否对此加以阐述?

问题回答

第一线生成批量文档(注“和”;在第一行末将产出转至档案)。 第三行确保产出可见,第四行执行第一行产生的批量档案。

关于所生成的批量:看来它收回了一些 s子:首先删除了 s子:

"(IF EXIST "%%~dp0%~n1.swf" (DEL "%%~dp0%~n1.swf"))" 

然后,根据mxmlc规定的方案创建。 路径环境变量:

%mxmlcPath% %opts% -file-specs "%%~dp0%~nx1"

如果它成功创建,它就会在缺席的情况下运作:

(IF EXIST "%%~dp0%~n1.swf" (CALL "%%~dp0%~n1.swf")

在其他情况下,它等待用户的投入(因此,你能够读到所有错误信息等):

ELSE (PAUSE)

对“%~dp0”等所有“syntax”的描述可在几个窗口指挥的文件中查阅,例如:

call /?




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

pdo database abstraction

Can someone help me to see what is going wrong with this setup I build the @sql query in the function below like this. The extra quotes are setup in the conditions array. $sql .= " WHERE $...

I wish I could correlate an "inline view"

I have a Patient table: PatientId Admitted --------- --------------- 1 d/m/yy hh:mm:ss 2 d/m/yy hh:mm:ss 3 d/m/yy hh:mm:ss I have a PatientMeasurement table (0 to ...

Syntax help! Php and MYSQL

Original: $sql = "SELECT DATE(TimeAdded) AS Date, $column_name FROM Codes ORDER BY TimeAdded ASC"; Altered: $sql = "SELECT DATE("m", TimeAdded ) AS Date, ColumnName FROM TableName ORDER BY ...

Is this code Equivalent

I am not a fan of the following construction if (self = [super init]) { //do something with self assuming it has been created } Is the following equivalent? self = [super init]; if (self != ...

热门标签