Question: how to zip a file in windows command line?
Answer: Download 7-Zip from the 7-Zip home page.
Add the path to 7z.exe to your PATH environment variable. ... 
Open a new command-prompt window and use this command to create a PKZIP *.zip file: 7z a -tzip {yourfile.zip} {yourfolder}