我正在使用以下代码在重命名之前检查文件,如果没有,请检查另一个文件以显示消息。
SET offline=1
IF EXIST %webroot%\%sitename%\app_offline.htm.scheduled (
call :displayMsg "Taking %sitename% website offline"
:: =================================
REN %webroot%\%sitename%\app_offline.htm.scheduled app_offline.htm
) ELSE (
IF EXIST %webroot%\%sitename%\app_offline.htm (
call :displayMsg "%sitename% website is already offline"
:: =====================================
)
)
但是正在返回以下内容
D:\Company\DeploymentFolder>SET offline=1
) was unexpected at this time.
D:\Company\DeploymentFolder> )
我看不出我的括号有问题?谁能看到我哪里出错了?