Question: how to zip files in windows batch script?
Answer: Create script to zip file. Open text file and copy the below command. Finally save as zipping. cmd. echo on for /f "tokens=3,2,4 delims=/- " %%x in ("%date%") do set d=%%y%%x%%z set data=%d% Echo zipping... "C:\Program Files\7-Zip\7z.exe" a -tzip "D:\dmp\Test_Zipping_%d%.