OT: Archiving a Sub-Directory, Preserving PathsI

I have a directory tree:

C: PSpice DeviceLib X-Fab XB06 NewLib

I want to just zip the contents of directory NewLib (and its subdirectories), but maintain the path information in the archive all the way back to C: (without including all the preceding directory's contents).

The client would then unzip a complete tree matching mine.

Thus, when I pass schematics to a client I don't need to edit any directory info in the netlist/circuit-files.

Any clever/painless way to do that?

Thanks! ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, AZ 85142   Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website.
Reply to
Jim Thompson
Loading thread data ...

Open command window

cd c:\

zip -r c:\someplace\foobar.zip c:\Pspice\DeviceLib\X-Fab\XB06\NewLib

(Win7 and later won't let you write to c:\ except in administrator mode.)

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs 
Principal Consultant 
ElectroOptical Innovations LLC 
Optics, Electro-optics, Photonics, Analog Electronics 

160 North State Road #203 
Briarcliff Manor NY 10510 

hobbs at electrooptical dot net 
http://electrooptical.net
Reply to
Phil Hobbs

Thats ok if you still insist on using C: as a data drive. But what if their data drive happens to be some other letter ?

Use of fixed paths like this can cause all sorts of problems.

Reply to
Adrian Jansen

This is just so _they_ can read my libraries without having to futz with editing the netlists.

I _used_to_ partition multiple drives. Looking back I wonder _why_ did I bother? ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, AZ 85142   Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 

             I'm looking for work... see my website.
Reply to
Jim Thompson

7zip sshould do that, I remember ther is a mechanism in the zip format that does that.

Heres is what the filename header field description says

File name the name of the file including an optional relative path. All slashes in the path should be forward slashes '/'.

Cheers

Reply to
Martin Riddle

See

For 7zip

use -r to recurse directories

Cheers

Reply to
Martin Riddle

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.