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
Copy a lot of file (Read 3627 times)
wkshum99
YaBB Newbies
*
Offline



Posts: 6
Copy a lot of file
Apr 7th, 2006 at 9:21am
 
Can I use WD to monitor a directory every 10 minutes and then copy all files created during this period to a particualr location?

Because the setting delay start, according to my understanding, will not help, it still copies files individually.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Copy a lot of file
Reply #1 - Apr 7th, 2006 at 3:35pm
 
Hi,

Short answer: no.
Why do you want this delay? Do you think it would be more efficient to "bulk copy" 10 files, rather than 10 separate copies? There may be a little bit efficiency gain, but I doubt you would notice it.

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
 
wkshum99
YaBB Newbies
*
Offline



Posts: 6
Re: Copy a lot of file
Reply #2 - Apr 10th, 2006 at 3:08am
 
Because the copying is through inter-site connection. We want to minimize the bandwidth usage on creating connections that would need each time when there is a file to be transferred.

Anyway, I managed to solve this by zipping the whole directory after a certain minutes passed before transfer. But this results in another problem:

We want auto transfer files from site A to site B, a specified person in site B will take away the file and generate a log entry on what files are being "received" by him.


Now, my task flows are:
monitor a folder in site A and after the first file created, wait additional for 5 minutes and zip the whole folder to site B. When the person take away the zip, a log entry generated.


My difficulty is that if I do in this way, the log only log down which zip are being deleted, but not the original files. If I log the file being added to zip in site A, I can't sure the person actually got the files because I can't be sure what orignal files are added to which zip file, there is no such option.

Is there any workaround?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Copy a lot of file
Reply #3 - Apr 10th, 2006 at 5:43am
 
Ok, I see.

If you download the command line additions for WinZip, see http://www.winzip.com/prodpagecl.htm you can use it to create a .bat file that lists all files inside new ZIP files. Use the automatically start batch files plugin, and let it monitor for new ZIP files.

Use the following script:
Code:
"c:\Program Files\WinZip\WZZIP.EXE" -v "%WD_FILE%" > "C:\ZipContents\%WD_FILE_B%.log"
 



This will create a listing of the zip contents to a log file having the same name as the ZIP.
Note that you need a licensed version of WinZip for this. You can also use the free InfoZip tools to do the same.

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
 
wkshum99
YaBB Newbies
*
Offline



Posts: 6
Re: Copy a lot of file
Reply #4 - Apr 10th, 2006 at 8:09am
 
Thanks, I solved the problem by using auto zip and auto unzip tasks.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1