Results 1 to 9 of 9

Thread: Accessing "in Use" Files == ?

Threaded View

  1. #4
    Senior Member
    Join Date
    Sep 2001
    Posts
    535
    Quote Originally Posted by nihil View Post
    Hmmm,

    I recall discussing this with one of my development team a very long time ago.

    I believe that you have to use the FileShare enumerator and specify Read or ReadWrite. If I remember correctly the default is None?

    I also remember that diagrams had to be handled differently because they were image/bitmap class files. I did a quick Google and found this:



    It certainly can be done as I distinctly remember using MS Word and it would warn you if someone else had a file open for editing and actually offered to make a copy of it for you.

    As you gave a .txt file as an example I just ran a little experiment opening the same file in both notepad and wordpad. I could edit it in both at the same time...............last file saved "won"
    Well the reason why the last file that was saved, won was because the lock was placed on it and the contents were written then the lock was removed. Now since there is no call back in word pad so it was not notified of the change. And so when the word pad file was saved, it overwrote.

    I think the op is asking about accessing the file when a lock on it is present already. And by accessing I mean trying to write to it
    Last edited by intruder; April 18th, 2012 at 05:07 AM.
    A laptop, internet connection and beer.

Similar Threads

  1. How to Create bat files....
    By cool_boy in forum General Computer Discussions
    Replies: 3
    Last Post: June 29th, 2006, 02:45 AM
  2. Genral Windows Tips
    By Nokia in forum Tips and Tricks
    Replies: 0
    Last Post: June 12th, 2004, 05:36 PM
  3. The history of the Mac line of Operating systems
    By gore in forum Operating Systems
    Replies: 3
    Last Post: March 7th, 2004, 08:02 AM
  4. Tcp/ip
    By gore in forum Newbie Security Questions
    Replies: 11
    Last Post: December 29th, 2003, 08:01 AM
  5. Camouflage v1.2.1 The programme
    By Gbin@ryR in forum AntiOnline's General Chit Chat
    Replies: 8
    Last Post: February 28th, 2002, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •