[dba-VB] c# - Monitor folder and run application

Stuart McLachlan stuart at lexacorp.com.pg
Sat Sep 19 17:14:56 CDT 2009


You should use the WaitForSingleObject API call.

I've got several examples in PowerBasic and VBA. which do things like monitor your 
browser cache and detect when cookies are added/changed but not in .Net.

I'd guess that googling that call should turn up suitable examples in c#.

-- 
Stuart

On 19 Sep 2009 at 14:43, jwcolby wrote:

> Just wondering if anyone has already done this and could send me a solution.
> 
> I need to monitor a folder and run an application if a file exists.
> 
> I have found code that runs an app and waits a time period for it to complete, closing the app if it 
> doesn't complete within that time period.
> 
> In addition to that I need the monitoring code, and all wrapped up in a single solution.
> 
> This doesn't appear too tough given all the code snipits out there but why reinvent the wheel if you 
> have done it.
> 
> -- 
> John W. Colby
> www.ColbyConsulting.com
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 





More information about the dba-VB mailing list