I have got the following code to check whether a file is open or not as I want to ignore it if it is, but it doesnt seem to be working. Can anyone help?
VB.NET:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]IF I[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]O.File.GetAttributes(f) [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] IO.FileAttributes.ReadOnly) = IO.FileAttributes.ReadOnly [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/COLOR][/SIZE]