To zip up subdirectories, you must both recurse subdirectories and preserve path names. This is done with the -r and -P options in combination. The options may be placed together as -rP. Here are a few examples:pkzip -rP backup.zip c:\dir\*.*
pkzip -u -rP c:\backup\doc.zip c:\documents\*.doc
pkzip -u -rP c:\backup\doc.zip c:\*.doc
When a .ZIP file is created with paths stored, these paths will be visible in a view of the file (-v). An example: pkzip -v backup.zip
To re-create these subdirectories, or to place files into their original subdirectories, the -d option must be used with PKUNZIP. An example: pkunzip -d backup.zip