To have WinZip Command Line Support Add-On create individual Zip files of each file in a folder, open a Command Prompt window and change directories (CD) to the folder where the files to be zipped are located.
You can then enter the following two lines in the Command Prompt window:
path=%path%;"c:\program files\winzip"
for %f in (*.txt) do wzzip %~nf.zip %f
Or enter the following two lines in a batch file:
path=%path%;"c:\program files\winzip"
for %%f in (*.txt) do wzzip %%~nf.zip %%f
If your filenames include spaces you will need to enclose the 2nd, 3rd, and 4th variable in quotes. For the example using the Command Prompt window it would now look like this:
path=%path%;"c:\program files\winzip"
for %f in ("*.txt") do wzzip "%~nf.zip" "%f"
| The examples above are specifically for text files (.txt). To work with other file types you would need to change *.txt to the appropriate file extension. |
If you have trouble with or questions about this please email Technical Support.