check zipjs.bat. Try to put your folders in a list like in the example bellow (zipjs.bat
should be in the same directory):
@echo off
set "folders_list=C:\folder1;C:\folder2;C:\folder3"
set "destination=C:\my.zip"
del "%destination%" /Q /F >nul 2>&1
for %%a in ("%folders_list%:;=";"%") do (
if not exist "%destination%" (
call zipjs.bat zipItem -source "%%~fa" -destination "%destination%" -force no
) else (
call zipjs.bat addToZip -source "%%~fa" -destination "%destination%" -force no
)
)
EDIT. After some clarifications made by the OP:
@echo off
set "folders_list=C:\folder1;C:\folder2;C:\folder3"
set "destination=C:\my.zip"
del "%destination%" /Q /F >nul 2>&1
for %%a in ("%folders_list%:;=";"%") do (
if not exist "%destination%" (
call zipjs.bat zipDirItems -source "%%~fa" -destination "%destination%" -force no
) else (
for %%# in ("%%a\*") do (
call zipjs.bat addToZip -source "%%~f#" -destination "%destination%" -force no
)
)
)