I'm trying to create a
cmd script that recursively traverses a directory and zip each file individually. This I have done here:
for /R %%b IN (*.*) do ( "C:\Program Files\WinRAR\WinRAR.exe" a "%%~nb.zip" "%%b" )
However, I would like to keep the zip files in the original folder structure and have the results be in a separate folder than the original folder. For example:
/original /some_files file-1.txt file-2.txt
/original /some_files file-1.txt file-2.txt /packed /some_files file-1.zip file-2.zip
Does anyone have any suggestions on how to alter the original?