lilgirl Posted March 20, 2004 Posted March 20, 2004 How do I check if a file is currently already open for read or write? Quote
*Experts* mutant Posted March 20, 2004 *Experts* Posted March 20, 2004 To see if a file has a readonly attribute use the FileInfo class and its Attributes property: Dim f As New IO.FileInfo("path to the file") If (f.Attributes And IO.FileAttributes.ReadOnly) = IO.FileAttributes.ReadOnly Then MessageBox.Show("Read only.") End If Quote
Menge Posted March 20, 2004 Posted March 20, 2004 i think lilgirl wanted to know how to know when a file is opened or locked by another application Quote Menge
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.