ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] about PKZIPC.EXE - Why not use ZTree?   [Help!]

By: John Gruener     Orlando, Florida  
Date: Oct 02,2022 at 23:38
In Response to: [Help!] about PKZIPC.EXE, need to know how to retain current dir name in ZIP (Ryan)

> AA= PKZIPC.EXE -TIMES=ALL -WARN -ADD -ATT=ALL -LEV=0 -DIR=CURRENT !TTTDIR.ZIP
> BB= PKZIPC.EXE -TIMES=ALL -WARN -ADD -ATT=ALL -LEV=0 -DIR=RELATIVE !TTTDIR.ZIP
>
> AA= and BB= have the same result, they both do not retain the 1st level
> dir's current name
> the 1st level dir name simply disappears
> their 2nd dir names become the 1st level dir names
>
> is this -DIR=CURRENT a bug? it cant be a bug, it has been like this for
> as long as i know.
>
> I want the ZIP result like this
> Ztree/tools
> Ztree/etc
>
> instead of
> /tools
> /etc
> this was what were compressed
>
> is it possible for someone to give me how to do?

Ryan,

I don't understand why you are not simply using ZTree's built-in function to do this. The default ARCHIVER.BB2 file has the PKZIPC.EXE commands to do exactly what you are trying to do.

Just tag the files in the directory and subdirectories you want, then in the Branch window use Ctrl-F5, name the file, then choose Paths (current) to include the root of the Branch directory name.

It works perfectly.

- John

354 views      
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 94 users online (0 registered, 94 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 6:48 am UTC  |  Hits:62,395,739  (10,525 Today )
RSS Feed