hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

unzip file when it comes into directory but wait for 15 min

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Monitoring Tasks
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Sep 14, 2006 3:49 pm    Post subject: unzip file when it comes into directory but wait for 15 min Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Sep 14, 2006 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Monitoring Tasks All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group