Code: Select all
UseZipPacker()
CreatePack(0, "lol.zip")
; add your files
AddPackFile(0, "Photo.JPG", "Image1.jpg")
ClosePack(0)
Code: Select all
UseZipPacker()
CreatePack(0, "lol.zip")
; add your files
AddPackFile(0, "Photo.JPG", "Image1.jpg")
ClosePack(0)

YesDo you have a clean PB installation
No. If you change the file name into English or remove from path Cyrillic characters (for example, "C:\pak.zip"), it is still the archive isn't created.Could it be an issue with Unicode/Cyrillic file names/OS system language?

Code: Select all
UseZipPacker()
CreatePack(0, "lol.zip")
; add your files
If AddPackFile(0, "Photo.JPG", "Image1.jpg")
debug "ok"
endif
ClosePack(0)
Fred, the archive isn't created. But function CreatePack() returns a non-zero.Fred wrote:Can you check this to be sure than photo.jpg is added ?
Code: Select all
UseZipPacker() CreatePack(0, "lol.zip") ; add your files If AddPackFile(0, "Photo.JPG", "Image1.jpg") debug "ok" endif ClosePack(0)