PC Review


Reply
Thread Tools Rate Thread

How to detect if the file is in use by another process?

 
 
pradeepsrinivasa@yahoo.com
Guest
Posts: n/a
 
      22nd Aug 2005
Hello all,
We have our own disk monitoring service (C++ code) running as Windows
service. This monitors the free disk space and deletes files and
folders, in specific folders, if necessary.

The product runs on both Win2k and Win2k3, with typical configuration
as follows:
P4 3GHz Dual Processor
1GB RAM
70GB Harddisk

When the system is under load, ( the free disk space is around 500 MB),
some of the folders are not deleted, even though there are no files.
The error is due to the fact the folder is being used by another
process.
We wanted to know how we can detect if the folder is in use by another
application?

Best Regards,
Srinivasa Pradeep

 
Reply With Quote
 
 
 
 
barry
Guest
Posts: n/a
 
      29th Aug 2005
(E-Mail Removed) wrote:
> Hello all,
> We have our own disk monitoring service (C++ code) running as Windows
> service. This monitors the free disk space and deletes files and
> folders, in specific folders, if necessary.
>
> The product runs on both Win2k and Win2k3, with typical configuration
> as follows:
> P4 3GHz Dual Processor
> 1GB RAM
> 70GB Harddisk
>
> When the system is under load, ( the free disk space is around 500 MB),
> some of the folders are not deleted, even though there are no files.
> The error is due to the fact the folder is being used by another
> process.
> We wanted to know how we can detect if the folder is in use by another
> application?
>
> Best Regards,
> Srinivasa Pradeep
>



This type of thing?
http://www.sysinternals.com/utilities/handle.html
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect process running on PPC WM 5 Pato Orquiden Microsoft Dot NET Compact Framework 3 25th Jun 2008 10:08 PM
How to detect closing a file opened by a Process? Henk van Winkoop Microsoft C# .NET 1 25th Apr 2007 05:22 PM
Detect 'End Process' in application SeC Microsoft C# .NET 9 7th Dec 2006 10:32 PM
Need process to detect if network is available BJ Microsoft ASP .NET 8 13th Jun 2006 08:02 AM
How do detect when a process starts =?Utf-8?B?TWFyaW8=?= Microsoft VB .NET 0 2nd Nov 2004 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:43 AM.