WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Zipper

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:06:09:14:33:44
Last Updated: 1999:06:09:14:33:44