CreatePack, add folder?
Posted: Wed Aug 07, 2013 10:03 pm
WinXP SP3 x86
In PB5.11, I find I cannot Create a Pack File using a full path for the pack file name:
....the solution in PB5.11 was to first SetCurrentDirectory() and then pass a name only for the pack file.
PB5.20Beta8 accepts the full path as above without flinching
However, what I wanted to do was pack a folder of files, but that fails in PB5.11 and 5.20Beta8. Yes, I could enumerate the folder and pack all the files, but on unpacking with WinZip or other app, the folder would not be created? Not an issue if it's my app doing the unpacking of course, but that is not always the case.
I think that UseZipPacker() is probably a poor choice for my purposes anyway, because the verbatim zip standard does not fully support Unicode file names. I usually exchange files across the globe using 7-Zip. Better search the forum for 7z file solutions......
Edit: Another hiccup - what if the folder to be packed contains sub-folders?
Edit2: There is a stand-alone command line version of 7-Zip. Looks to have potential.
In PB5.11, I find I cannot Create a Pack File using a full path for the pack file name:
Code: Select all
UseZipPacker()
sPath = "C:\Documents and Settings\User01\Application Data\CADM 2013 A01"
If CreatePack(#ZipZW3D, sPath + ".zip")PB5.20Beta8 accepts the full path as above without flinching
However, what I wanted to do was pack a folder of files, but that fails in PB5.11 and 5.20Beta8. Yes, I could enumerate the folder and pack all the files, but on unpacking with WinZip or other app, the folder would not be created? Not an issue if it's my app doing the unpacking of course, but that is not always the case.
I think that UseZipPacker() is probably a poor choice for my purposes anyway, because the verbatim zip standard does not fully support Unicode file names. I usually exchange files across the globe using 7-Zip. Better search the forum for 7z file solutions......
Edit: Another hiccup - what if the folder to be packed contains sub-folders?
Edit2: There is a stand-alone command line version of 7-Zip. Looks to have potential.