windows - 批处理脚本何时不执行除错误之外的所有命令
问题描述
我写了一个批处理脚本,成功执行了别人的命令,但是我后面的命令没有继续。为什么?我的脚本:
cd /d "%~dp0"
echo %cd%
set Param=%1%
set resultDir=..\build\UnityXXXXX-%Param%-Mac
echo start build Editor
: This line is executing someone else's script!!!!!!!!
.\jam Editor -sCONFIG=release
: The previous script finishes executing without any error, but even then, the later scripts will not continue to execute!!!!!!!!
echo start copy to build dir
if not exist .\build\WindowsEditor\Unity.exe (
echo the Unity is not build, build it first.
pause
exit
)
if exist %resultDir% rd /s /q %resultDir%
md %resultDir%
xcopy /s ..\UnityXXXXX\* %resultDir%\
xcopy .\build\WindowsEditor\Unity.exe %resultDir%\Contents\Unity.exe*
echo finish
pause
解决方案
推荐阅读
- hosting - 托管 Apple App Site Association 文件的最佳方式是什么?
- javascript - 如何将 React 组件之间的数据传递到另一个组件内的 div
- python - 包含 0x00 十六进制数时,数组长度返回错误值
- ios - SwiftUI 中带有文本字段的长列表
- snowflake-cloud-data-platform - Snowflake Auto Purge 记录是否可以超过 X 天?
- c - 磁盘 I/O 操作 CPU 亲和性
- c# - 在 C# 中生成 13 位唯一随机数
- sql-server - 从 VARBINARY(MAX) javascript:__doPostBack 中提取 PDF
- php - Laravel 在生产中的数据库访问被拒绝
- macos - 多配置 USB 设备 - Catalina 中的问题