found 7zip in C:\Program Files\7-Zip\7z.exe if exist E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip del E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip 7z a -tzip E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip E:\buildsystem\release-1928-x64\lib E:\buildsystem\release-1928-x64\include 7-Zip [64] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31 Scanning the drive: 1311 folders, 16790 files, 331622608 bytes (317 MiB) Creating archive: E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip Items to compress: 18101 Files read from disk: 16790 Archive size: 68114780 bytes (65 MiB) Everything is Ok xcopy /Y E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip C:\Inetpub\wwwroot\sdk\downloads E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip 1 File(s) copied uploadftp "E:\buildsystem\release-1928-x64-gdal-mapserver-libs.zip" downloads