In reference to this wonderful work:
@echo off
if [%1]==[] goto :eof
:loop
7z a -tzip "%~1.zip" "%~1"
shift
if not [%1]==[] goto loop
I can't for the heck of it figure out where to put the output directory. I want to batch archive from my external hard drives, most of which are completely filled up. So I need to change the output directory to another drive.
I managed to find a way to do it with the following command line:
for /d %X in (*) do "c:\Program Files\7-Zip\7z.exe" a -tzip "<destinationPath>\%X.zip" "%X\"
However the above batch file would really come in handy because I could simply drop as many folders onto it as I have spare storage space, then move the archives and proceed with the next batch.
On Windows here by the way so please bear with me.