|
Answer» I am trying to COMPRESS over 100 files to 7z in 7zip. However, I have to select each files to compress them.
As you can tell, this will be a very long process so I was HOPING to compress them all at once. 7zip seems to not have this option which is rather annoying.
However, I have found this command prompt CODE which compresses folders into .7z. The code is this -
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.7z" "%%X\"
Now, how I do use this code to compress files, not folders?
The code is actually saved in a bat file where when opened, it will do its job.
ThanksCode: [Select]@echo off for %%X in (*.*) do "c:\Program Files\7-Zip\7z.exe" a "%%~nX.7z" "%%X"
If you start them all at the same time (which can be done) you MAY run out of resources, but the above should process an ENTIRE folder.
|