1.没有else if
2.括号(要和if else 在一行 不然报错
set CurDir=%~dp0
set LibName=%1
if "%LibName%"=="ILRScript" (
xcopy %LibName%.dll %CurDir%..\..\zjn_hotfix_project\Assets\StreamingAssets\ILR\ /y
) else (
if "%LibName%"=="GlobalData" (
xcopy %LibName%.dll %CurDir%..\..\zjn_hotfix_project\Assets\GameRes\ManagedLib\ /y
) else (
pdb2mdb %LibName%.dll
xcopy %LibName%.dll %CurDir%..\..\zjn_hotfix_project\Assets\GameRes\ManagedLib\ /y
xcopy %LibName%.dll.mdb %CurDir%..\..\zjn_hotfix_project\Assets\GameRes\ManagedLib\ /y
xcopy %LibName%.xml %CurDir%..\..\zjn_hotfix_project\Assets\GameRes\ManagedLib\ /y)
)
网友评论