如何跳过解压缩已经存在的文件?

How to skip unzipping a file that already exists?

ECHO Unzipping "%build1%"...
unzip -o "%build1%" -d "%exbuild1%" >NUL

ECHO Done.
ECHO.

ECHO Unzipping "%build2%"...
unzip -o "%build2%" -d "%exbuild2%" >NUL

ECHO Done.
ECHO.

如何跳过解压已经存在的文件?如果解压文件不存在,请解压。

if not exist "%exbuild1%\%build1%" (
  ECHO Unzipping "%build1%"...
  unzip -o "%build1%" -d "%exbuild1%" >NUL

  ECHO Done.
  ECHO.
) else (
  ECHO Build already exists
)

?

查看有关 IF 命令的更多信息。