Re: defining target directory using zip.exe

[email protected] (Jonathan Graham Harston) 30 Nov 2003 17:11:25 +0000
Newsgroups gmane.comp.archivers.info-zip
Organization Arcade - The Definitive Acorn BBS
Message-ID <[email protected]>
> Message-ID: <4C5479D17E%ds-Ym6Ivm/Ks7B65+NM0QMiFAbYiX8G1TQY9dF7HbQ/[email protected]>
 
Darren Salt <ds-Ym6Ivm/Ks7B65+NM0QMiFAbYiX8G1TQY9dF7HbQ/[email protected]> wrote:
> I demand that Reji Zachariah may or may not have written...
> > I am using zip.exe in MS-DOS command
> > prompt to zip some files. I want to add the target directory to which
> > the files will be extracted to. For example,
> > if I want to zip test.txt extracted to Test\TextFiles\, how do I specify
> > that? Is it possible to do that with zip.exe?
> [snip]
> 
> Create the directory. Put the files in it. Zip that directory. Wonder why
you
> didn't think of something so obvious. Ask on some other list to try to find
> out why. Get flamed and ridiculed.
 
It's a perfectly sensible question, though Reji could have clarified it by
adding "without creating a directory, putting the files in it and Zipping
that directory".
 
Quite often I want to, for example, put Fred, Jim and Sheila in a Zip
archive, and have them appear when I open it with, for example, SparkFS as
Test/TextFiles/Fred, Test/TextFiles/Jim and Test/TextFiles/Sheila. I've
added a '-p' option to prepend a path to files within a archive to the
*Zip command I've written for BBC/RISC OS, see
http://www.mdfs.net/Apps/Archives/BBCZip/ManPages/Z/1Zip
 
But, to answer Reji's question directly, no it's not possible with zip.exe
for MSDOS, unless you write the relevant additional functionality into the
source.
 
-- 
J.G.Harston (JGH BBC PD Library) 70 Camm Street, Walkley, SHEFFIELD S6 3TR
[email protected] - Running on BBCs & Masters with SJ MDFS FileServer
Z80+6502/CoPro+Tubes/Econet+SJ - - - - - - - http://www.mdfs.net/User/JGH/