Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there text editor that can open file in exclusive mode? Its a standard way how to restrict access to file to one process / user in operating system Windows. I need this because of editing file stored on network drive. This file can be edited by other two people on domain. File editor I am using at this time (Notepad++) doesnt support this.

share|improve this question
    
Sorry, are you saying you want it to be editable by multiple people or just one? –  Dave Oct 9 '12 at 12:40
    
Multiple people but one at a time to prevent conflicts. –  truthseeker Oct 9 '12 at 13:17
1  
Have you considered using version control software (svn, hg, git, etc.)? –  StephenPaulger Oct 9 '12 at 13:24
    
Yes, this is a viable alternative. –  truthseeker Oct 9 '12 at 14:02

1 Answer 1

You could use Dreamweaver - it has a check in check out feature designed for this (or TFS for Visual Studio but this is more expensive I think). However, you ARE given the right to overwrite some one else which may be a deal breaker.

More details with Dreamweaver: http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ebfa.html and describes itself as:

If you’re working in a collaborative environment, you can check files in and out from local and remote servers. If you’re the only person working on the remote server, you can use the Put and Get commands without checking files in or out.

Checking out a file is the equivalent of declaring “I’m working on this file now—don’t touch it!” When a file is checked out, the name of the person who checked out the file is displayed in the Files panel, along with a red check mark (if a team member checked out the file) or green check mark (if you checked out the file) next to the file’s icon.

Checking in a file makes the file available for other team members to check out and edit. When you check in a file after editing it, your local version becomes read-only and a lock symbol appears beside the file in the Files panel to prevent you from making changes to the file.

Dreamweaver does not make checked-out files read-only on the remote server. If you transfer files with an application other than Dreamweaver, you can overwrite checked-out files. However, in applications other than Dreamweaver, the LCK file is visible next to the checked-out file in the file hierarchy to help prevent such accidents.

share|improve this answer
    
Ouch. I hope there's a better solution. Dreamweaver last time I checked (10 years ago but probably still applies) is a big program with lots of panes, and options, for professionals to write HTML cleanly, so has lots of features for writing webpages. I doubt you can really call Dreamweaver a text editor. MS Word may also lock a file, but it's not what one would call a text editor either. –  barlop Oct 9 '12 at 17:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.