- Aug
- 258
- 4
I have a directory where I store my means for work in subdirectories again.
Now I want to zip some of these old subdirs in one zip-file.
But I can't find a switch/option to store them with its directory name like in 7zip.
Example:
R:\robocopy >zip /a old_stuff.zip 20111108_amd-hd5\*.*
<= R:\robocopy\20111108_amd-hd5\filer-commands_amd-diverse.xlsx
<= R:\robocopy\20111108_amd-hd5\amd-hd5_20111008191729.log
<= R:\robocopy\20111108_amd-hd5\robocopy-amd-hd5.btm
R:\robocopy >zip /v old_stuff.zip
2011-08-07 20:47 13,186 21% filer-commands_amd-diverse.xlsx
2011-10-08 20:54 1,296 64% amd-hd5_20111008191729.log
2011-10-08 18:15 9,026 65% robocopy-amd-hd5.btm
R:\robocopy >
R:\robocopy >7za a old_stuff.7z 20111108_amd-hd5\*.*
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Creating archive old_stuff.7z
Compressing 20111108_amd-hd5\robocopy-amd-hd5.btm
Compressing 20111108_amd-hd5\amd-hd5_20111008191729.log
Compressing 20111108_amd-hd5\filer-commands_amd-diverse.xlsx
Everything is Ok
R:\robocopy >7za l old_stuff.7z
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Listing archive: old_stuff.7z
--
Path = old_stuff.7z
Type = 7z
Method = LZMA
Solid = +
Blocks = 1
Physical Size = 13989
Headers Size = 269
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2011-10-08 18:15:51 ....A 9026 13720 20111108_amd-hd5\robocopy-amd-hd5.btm
2011-10-08 20:54:43 ....A 1296 20111108_amd-hd5\amd-hd5_20111008191729.log
2011-08-07 20:47:33 ....A 13186 20111108_amd-hd5\filer-commands_amd-diverse.xlsx
------------------- ----- ------------ ------------ ------------------------
23508 13720 3 files, 0 folders
Now I want to zip some of these old subdirs in one zip-file.
But I can't find a switch/option to store them with its directory name like in 7zip.
Example:
R:\robocopy >zip /a old_stuff.zip 20111108_amd-hd5\*.*
<= R:\robocopy\20111108_amd-hd5\filer-commands_amd-diverse.xlsx
<= R:\robocopy\20111108_amd-hd5\amd-hd5_20111008191729.log
<= R:\robocopy\20111108_amd-hd5\robocopy-amd-hd5.btm
R:\robocopy >zip /v old_stuff.zip
2011-08-07 20:47 13,186 21% filer-commands_amd-diverse.xlsx
2011-10-08 20:54 1,296 64% amd-hd5_20111008191729.log
2011-10-08 18:15 9,026 65% robocopy-amd-hd5.btm
R:\robocopy >
R:\robocopy >7za a old_stuff.7z 20111108_amd-hd5\*.*
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Creating archive old_stuff.7z
Compressing 20111108_amd-hd5\robocopy-amd-hd5.btm
Compressing 20111108_amd-hd5\amd-hd5_20111008191729.log
Compressing 20111108_amd-hd5\filer-commands_amd-diverse.xlsx
Everything is Ok
R:\robocopy >7za l old_stuff.7z
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Listing archive: old_stuff.7z
--
Path = old_stuff.7z
Type = 7z
Method = LZMA
Solid = +
Blocks = 1
Physical Size = 13989
Headers Size = 269
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2011-10-08 18:15:51 ....A 9026 13720 20111108_amd-hd5\robocopy-amd-hd5.btm
2011-10-08 20:54:43 ....A 1296 20111108_amd-hd5\amd-hd5_20111008191729.log
2011-08-07 20:47:33 ....A 13186 20111108_amd-hd5\filer-commands_amd-diverse.xlsx
------------------- ----- ------------ ------------ ------------------------
23508 13720 3 files, 0 folders