found 7zip in C:\Program Files\7-Zip\7z.exe if exist E:\buildsystem\release-1930-dev.zip del E:\buildsystem\release-1930-dev.zip if exist E:\buildsystem\release-1930\install del E:\buildsystem\release-1930\install\*.exe E:\buildsystem\release-1930\install\*.msi E:\buildsystem\release-1930\install\*.zip E:\buildsystem\release-1930\install\*.bz2 7z a -tzip -xr!*.cmake -xr!*.pc E:\buildsystem\release-1930-dev.zip E:\buildsystem\release-1930 support\regex-0.12 Makefile config.opt readme.txt changelog.txt license.txt *.rtf 7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15 Scanning the drive: 1361 folders, 17436 files, 441362131 bytes (421 MiB) Creating archive: E:\buildsystem\release-1930-dev.zip Add new data to archive: 1361 folders, 17436 files, 441362131 bytes (421 MiB) Files read from disk: 17436 Archive size: 110361762 bytes (106 MiB) Everything is Ok xcopy /Y E:\buildsystem\release-1930-dev.zip C:\Inetpub\wwwroot\sdk\downloads E:\buildsystem\release-1930-dev.zip 1 File(s) copied uploadftp "E:\buildsystem\release-1930-dev.zip" downloads