Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > How to detect if the file is in use by another process?

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

Forum Windows 2000/NT : Windows 2000/NT General Discussion - How to detect if the file is in use by another process?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.win2000.file_system (More info?)

 

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

Sponsored Links
Register or log in to remove.
- 0 +

Archived from groups: microsoft.public.win2000.file_system (More info?)

 

pradeepsrinivasa@yahoo.com 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 to Barry
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > How to detect if the file is in use by another process?
Go to:

There are 1009 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them