View previous topic :: View next topic |
Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Sep 14, 2006 3:49 pm Post subject: unzip file when it comes into directory but wait for 15 min |
|
|
I am still not able to get the Unzip Setup working. I have the folder on Network Names RemoteTransfers where employees keep dropping zip files. I have that Task created to Monitored that folder and everytime there is a zip file, unzip to another folder on the network. This task is not working. Also, would this task try to run as soon as the zip file is dropped. Reason I am asking that is if the zip file is copying and takes 10 minutes before it is done copying, will this task run after the completion of the copy or as soon as it sees the zip name.
Last edited by Robert on Thu Sep 14, 2006 3:52 pm; edited 1 time in total |
|
Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Sep 14, 2006 3:51 pm Post subject: |
|
|
If the zip file takes a few minutes to create, it could try to unzip it as it is being created, depending on the schedule frequency. To prevent this, you would have to run a DirLoop task in between. i.e. the Directory Monitor task calls the Directory Loop task and the DirLoop task calls the Unzip task as follows:
DirMonitor task:
tasktitle = dirMon
task to run = dirLoop
Directory loop task:
tasktitle = dirLoop
filename = $%dirMon::Filenames%$
option = Run task if file modified date is older than 15 minutes (this gives enough time for zip creation to finish)
task to Run = Unzipped
Unzip task:
task title = Unzipped
filename = $%dirLoop::CurrentFilename%$ |
|
Back to top |
|
 |
|