Page 2 of 2 <12
Topic Options
#158650 - 2006-03-10 08:41 PM Re: How to check if a file is in use
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Not sure if this helps, but you might be able to output the data and parse the file.

http://technet2.microsoft.com/WindowsServer/en/Library/3d240ddf-09a4-4b9c-b2fb-b4e057f049dc1033.mspx
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#158651 - 2006-03-10 11:28 PM Re: How to check if a file is in use
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby, that's for shared files.
_________________________
!

download KiXnet

Top
#158652 - 2006-03-11 03:45 AM Re: How to check if a file is in use
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You could also use WMI:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/cim_datafile.asp
Attribute InUseCount

Supposedly, it is not 100% reliable.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.027 seconds in which 0.013 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org