WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
preserve subdirectory structure when using wzzip (Read 3230 times)
daved
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
preserve subdirectory structure when using wzzip
Jul 18th, 2004 at 2:03am
 
Hi Gert,
  I am currently evaluating watchDirectory and I am interested in the AutoZip feature.  Is there any way to preserve the directory within the zip archive when a file is added?  For example, if I update a file named test.txt in c:\temp\test file\ and I allow the WDAutoZip.bat file to run, it adds test.txt to the zip archive but the path is lost (ie. \temp\test file\).  Is there any way to preserve this?  I have looked at wzzip documentation, but I think it has something to do with using %WD_FILE%.

Any suggestions?

Thanks,
Dave

btw - I love what I've seen so far!!  Grin
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: preserve subdirectory structure when using wzz
Reply #1 - Jul 18th, 2004 at 2:48pm
 
Dave,

According to the WZZIP reference, you should add the -P command line option. This will store the complete path (excluding the drive-letter) into the archive.

So, below the :FILENEW label in your .bat file, it should read:
Code:
"%WINZIPDIR%\wzzip" -P "%ZIPDIR%\%WD_FILE_N%.ZIP" "%WD_FILE%"
 


And, below the :FILEUPD label:
Code:
"%WINZIPDIR%\wzzip" -u -P "%ZIPDIR%\%WD_FILE_N%.ZIP" "%WD_FILE%"
 



This is tested and works with the latest WinZip (9.0).

Hope this helps,
Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
daved
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Re: preserve subdirectory structure when using wzz
Reply #2 - Jul 18th, 2004 at 10:51pm
 
Gert,
  Thanks for the speedy reply!! I am leaning towards licensing the product, we would most likely be using it at work for some of our projects.

Thanks again!

Dave
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1