Helpful Windows Shell Commands

7Zip Commands

Note: Copy the 7z.exe file to the folder you are working in.

7Zip all files in a folder to the .7z format.

FOR %i IN (*.*) DO 7z.exe a "%~ni.7z" "%i"

7Zip all files in a folder to the .zip format.

FOR %i IN (*.*) DO 7z.exe a -tzip "%~ni.zip" "%i"
Previous
Next