

To work with other file types you would need to change *.txt to the appropriate file extension. For the example using the Command Prompt window it would now look like this:įor %f in ("*.txt") do wzzip "%~nf.zip" "%f" The examples above are specifically for text files (.

If your filenames include spaces you will need to enclose the 2nd, 3rd, and 4th variable in quotes. Or enter the following two lines in a batch file:įor %%f in (*.txt) do wzzip %%~nf.zip %%f If you have already added this to the PATH environment variable, you will only need to use the second line.Īfter changing directories, you can enter the following two lines in the Command Prompt window: The first one defines the PATH to the WinZip folder. 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. Individual Zip files in a folder of files If you are not experienced with using a command line interface you may first want to go over some of the information in Command Line Basics. CorelDRAW Graphics Suite 2021 (Windows/Mac).
