For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2007 > Any way to know if a particular file is open and being used ( Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Any way to know if a particular file is open and being used ( Windows
Wagner, David --- Senior Programmer Analyst --- WG

2007-08-23, 7:00 pm

Rob Dixon pointed me to a module(Win32::Security::NamedObject)
which works, but when I tried a larger volume, it failed with the
following:

GetNamedSecurityInfo: The process cannot access the file because it is
being used by another process. at
C:/Perl/site/lib/Win32/Security/NamedObject.pm line 648 at
C:/Perl/lib/File/Find.pm line 918

So I was thinking if I can see if it is opened ( could try my
original processing of using ls -l to attempt to get the info I need).

I tried search on web and within CPAN, but not getting what I
was looking for.

Any thoughts or ideas?

Thanks.

Wags ;)
David R Wagner
Senior Programmer Analyst
FedEx Freight
1.408.323.4225x2224 TEL
1.408.323.4449 FAX
http://fedex.com/us=20


****************************************
******************************
This message contains information that is confidential and proprietary to F=
edEx Freight or its affiliates. It is intended only for the recipient name=
d and for the express purpose(s) described therein. Any other use is proh=
ibited.
****************************************
******************************

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com