Zipper and UNC Paths
Keywords: UNC universal naming convention
Question:
I am using the most recent version of the zip extender version 10004. But is does not want to zip UNC
path names. The same function call will work with hard coded path names. When I uses the unzip function
it work perfect. Below is the code that I tested with.
;The FileExist works
d=FileExist("\\testshaz\test\pclan\users\dlee\test.txt")
;The zZipFiles returns a 12 "Nothing to do!"
xrtn=zZipFiles("j ", "\\testshaz\test\pclan\users\dlee\test.zip", "\\testshaz\test\pclan\users\dlee\test.txt", "")
;The hard coded path works fine
xrtn=zZipFiles("j ", "h:\pclan\users\dlee\test.zip", "h:\pclan\users\dlee\test.txt", "")
Answer:
Do a DirChange to the UNC drive first, and then do the zip operations on a relative directory basis:
DirChange("\\testshaz\test\pclan\users\dlee\")
xrtn=zZipFiles("j ", "test.zip", "test.txt", "")
Article ID: W14136
Filename: Zipper and UNC Paths.txt