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
Run but file every hour (Read 3553 times)
Michalke
YaBB Newbies
*
Offline



Posts: 6
Run but file every hour
Jul 20th, 2011 at 12:36pm
 
Hi

I have some problems with the windows task planer, but watchdirectory is much more reliable. How can I run a bat-file every hour or according to any schedule I set without it having to monitor any directory? If it is absolutely necessary for watchdirectory to monitor a directory I can just let it watch the database directory. But I want to run a bat file once every hour between, say, 8 am and 11 pm.

Is this possible?

Thanks for helping.
Back to top
 
 
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 661
South Germany
Re: Run but file every hour
Reply #1 - Jul 20th, 2011 at 1:11pm
 
first of all: watchDirectory is designed to watch directories, that is where the product name came from Wink , so without a watched folder you will not get any event and no action.
This workarround will maybe solve your problem (not tested):
- create a dummy folder and a dummy file in it, watch this folder
- tab "monitoring method" take "File Age", trigger for files older than 1 minute, poll directory every 60 minutes, uncheck "remember triggered files"

WatchDirectory will now read every 60 minutes you dumy folder, will find your dummy file, will fire your event and run your bat file.

If it works like you want it you can use the scheduler to run the task only between 8am - 11pm and check "events outside theses periods are ignored". Note that the task needs to run all the time and your dummy folder/file needs to be reachable all the time - only events outside the period are ignored.

Hope this helps.
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: Run but file every hour
Reply #2 - Jul 20th, 2011 at 1:42pm
 
Good idea Dirk.

An alternative implementation is to ONLY select the QUIET event on the "Events" page. Should work fine as well, I think.

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



Posts: 6
Re: Run but file every hour
Reply #3 - Jul 21st, 2011 at 3:07pm
 
Hi Dirk & Gert

Thanks for helping me. I didn't get Dirks method to work but it probably will. On the other hand, Gerts suggestion with QUIET works like a charm.

Thanks a lot. Watchdirectory rocks!
Back to top
 
 
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 661
South Germany
Re: Run but file every hour
Reply #4 - Jul 21st, 2011 at 3:14pm
 
1:0 for Gert Smiley
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Page Index Toggle Pages: 1