Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • This is really a comment and not an answer to the original question.
    – DavidPostill
    Commented May 25, 2016 at 11:43
  • For me it was the answer in task which lead me to this page. Because of people like you somebody will not find it in their similar task.
    – noonex
    Commented May 26, 2016 at 3:13
  • 4
    OP was asking how to lock an existing file. Creating a folder with the same name is not possible. "A subdirectory or file xxx already exists" so your answer is not applicable to the problem in the question.
    – DavidPostill
    Commented May 26, 2016 at 9:02
  • I many cases "lock existing file" is needed to make sure that application will get an error trying to modify or open it. I really will stop explaining obvious things now - have a good day, sir.
    – noonex
    Commented May 26, 2016 at 11:50