Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Dec 2009
    Location
    West Nyack, NY
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Notepad -- opening a networked file that is already opened - can this be prevented

    Hello -- I often work on batch files in Notepad; the files are stored on a shared network drive. I know that if I try to open a Word document that someone else has already opened, Windows tells me that I can only open the document as read-only. Is there any way to have Windows act the same way when a file (in this case, a .BAT file) is opened? Right now, if I am working on a batch file and someone else opens the same file, the other person can open the file, edit it, and save it, but when I later save what I have done, my edits clobber the other person's changes. So is there a way to prevent this from occurring? Thanks in advance for all responses.

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,984
    Thanks
    425
    Thanked 1,601 Times in 1,451 Posts
    Geistman,

    Look into NotePad++. When I have a file open in NP++ and run a program that changes that file NP++ puts up a notice that the file has changed!

    NPWarning.JPG

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,573
    Thanks
    35
    Thanked 217 Times in 193 Posts
    RG has a good answer - I get the same problem as you, since I am often remote desktopping to another server, and can have the same BATch file open in both...
    BATcher

    Talking to laser printers can be very effective.
    You just need the right toner voice...

  4. #4
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    9,022
    Thanks
    64
    Thanked 1,140 Times in 1,061 Posts
    +1 for Notepad++ (does that make it Notepad+++)

    cheers, Paul

  5. #5
    5 Star Lounger
    Join Date
    Jan 2004
    Location
    Praha
    Posts
    1,149
    Thanks
    100
    Thanked 134 Times in 119 Posts
    Quote Originally Posted by Paul T View Post
    +1 for Notepad++ (does that make it Notepad+++)

    cheers, Paul
    No, it makes it Notepad++1

Tags for this Thread

Posting Permissions

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