PC Review


Reply
Thread Tools Rate Thread

any simple and fast way to check if file is open (locked) other than T/C/F ?

 
 
Joe
Guest
Posts: n/a
 
      26th Feb 2007
any other way than Try / Catch / Finally ??

 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      27th Feb 2007
"Joe" <(E-Mail Removed)> schrieb
> any other way than Try / Catch / Finally ??


Why do you want to know this if you don't want to access the file? It
wouldn't make sense to check if the file is locked before accessing it
because between the check and the access another process might have opened
it, so the positive check would lead to an exception when accessing the file
anyway.

Armin

 
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
downloading excel file for open causes "file is locked for editing HigherImpact Microsoft Excel Programming 0 3rd Dec 2007 06:23 PM
How can I spell check the open fields in a locked document? =?Utf-8?B?cmZsZW1vcw==?= Microsoft Word Document Management 1 9th Sep 2006 12:54 AM
How to check if a file is locked? cmay Microsoft Dot NET 5 10th Jul 2006 10:40 PM
Is a file locked by another process ? How can I check ? =?Utf-8?B?R3V5X0I=?= Microsoft Dot NET 2 13th Mar 2006 10:55 PM
Check for locked file Erik Fjelldal Microsoft VB .NET 1 19th Nov 2005 09:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 AM.