TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John Donman
NA
3
0
Checking if a file is already in use by another application ?
Nov 16 2005 2:51 PM
Hi I would like to check if a file is already open by another application before I actually save.
I have an XML being used by an application which is running. I would like to modify that XML through another application, but wanna check if the prev app is running (which uses this xml).
In simple words
if(filepath is in use)
{
save(filepath);
}
else{
dialog(this app is being used,,,pls close other app first)
}
Note: I dont want to use exceptions. I want to prevent an exception to occur in th first place by checking in advance...any clues???
Thanks
Reply
Answers (
1
)
FileStream question
How to determine if a file copy is complete