7zip tricks

From plnx.nl
Revision as of 09:43, 17 May 2025 by Pverha10 (talk | contribs) (Created page with "7zip tricks ==7zip from dosbox== To create seperate zip files from the commandline in dos with 7zip the following: <pre> forfiles /M data.* /C "cmd /c 7z a @file.zip @file" </pre> In the following directory: <pre> C:\TEMP>dir Volume Serial Number is 1337-1337 Directory of C:\TEMP 01-01-2001 00:00 <DIR> . 01-01-2001 00:00 <DIR> .. 01-01-2001 07:00 16.384 data.log 01-01-2001 08:00 16.384 data.dat 01-01-2001 09:00...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

7zip tricks

7zip from dosbox

To create seperate zip files from the commandline in dos with 7zip the following:

forfiles /M data.* /C "cmd /c 7z a @file.zip @file"

In the following directory:

C:\TEMP>dir
 Volume Serial Number is 1337-1337

 Directory of C:\TEMP

01-01-2001  00:00    <DIR>          .
01-01-2001  00:00    <DIR>          ..
01-01-2001  07:00            16.384 data.log
01-01-2001  08:00            16.384 data.dat
01-01-2001  09:00            32.768 data2.log
               3 File(s)     65.536 bytes
               2 Dir(s)  33.554.432 bytes free

will create data.log.zip and data.dat.zip with zip compression.