Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Login

    i am getting the below error message when trying to save a file to our sharepoint site the file cannot be and it may be protected do you want to launch notepad++ in administrator mode?

    Help wanted · · · – – – · · ·
    12
    12
    26.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Stanley NicholsonS
      Stanley Nicholson
      last edited by

      i am getting the below error message when trying to save a file to our sharepoint site the file cannot be and it may be protected do you want to launch notepad++ in administrator mode?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Stanley Nicholson
        last edited by

        Hello Stanley-Nicholson,

        I’m not sure but I guess you missed something from the error message didn’t you?
        Maybe take a screenshot and upload using http://imgur.com/, no registration needed.
        And what npp version and os do you use?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Eric WilliamsE
          Eric Williams
          last edited by

          This is not really an error. this is an informational message informing you that you are editing a locked / protected file. this is normally a system file of some sort. if you are positive you want to modify / replace the file then click yes to allow NPP to restart in administrator mode. I would also suggest you have a copy of the unmodified file before allowing NPP to make the requested change.

          This is a safety feature not a problem with the program.

          1 Reply Last reply Reply Quote 0
          • kerry ruddockK
            kerry ruddock
            last edited by kerry ruddock

            Considering this topic has 1.7K views I felt it was necessary to post what fixed this problem for me.

            I run notepad++ under Windows7 Home Premium. A few weeks back I too started getting the same error message: “The file cannot be saved and may be protected. Do you want to launch Notepad++ in Administrator Mode?” The problem as it turned out was that I had windows explorer open with the preview pane ON highlighting the file I was editing in Notepad++. The preview pane button sits top right between the directory listing view button and help button. Turn off the preview and you will be able to save without any problem.

            Hope this helps.

            Serena DeNardoS 1 Reply Last reply Reply Quote 4
            • Cindy Guthrie-MooreC
              Cindy Guthrie-Moore
              last edited by

              Thank you Kerry, that was very helpful!

              1 Reply Last reply Reply Quote 0
              • Serena DeNardoS
                Serena DeNardo @kerry ruddock
                last edited by

                @kerry-ruddock Incredible! Thank you for this information! It was making me crazy.

                1 Reply Last reply Reply Quote 0
                • Devesh SrivastavaD
                  Devesh Srivastava
                  last edited by

                  Here is what’s happening with me -

                  1. Create a text file directly in a folder by RightClick->New option
                  2. Try opening the file in notepad++
                  3. Edit and save
                    You get the same error -
                    “The file cannot be saved and may be protected. Do you want to launch Notepad++ in Administrator Mode?

                  I am using V7.4 version on Win10

                  1 Reply Last reply Reply Quote 1
                  • Changju LeeC
                    Changju Lee
                    last edited by

                    @Devesh Srivastava I am also seeing the exactly same problem

                    1 Reply Last reply Reply Quote 0
                    • Bhavini Hasmuclal VassaramoB
                      Bhavini Hasmuclal Vassaramo
                      last edited by

                      Thanks Kerry! You saved my life!

                      1 Reply Last reply Reply Quote 0
                      • app developerA
                        app developer
                        last edited by app developer

                        Hi!.. Guys, I know this issue is silly but it upsets us much more.

                        So please follow my words to close this issue completely.

                        if you see this message ->>>“The file cannot be saved and may be protected. Do you want to launch Notepad++ in Administrator Mode?"<<<- when you try to save file in notepade++ means, Please go to
                        C:\Program Files\Notepad++
                        (or)
                        C:\Program Files (x86)\Notepad++

                        “notepad++.exe” select the file and right click it. Then go to properties-> Then go to the tab Compatibility-> check the checkbox “Run This program as an administrator”

                        Then click ok…

                        Thats it.

                        Note: To do this you need to have a administrator rights.

                        1 Reply Last reply Reply Quote 0
                        • Евгения БалабановаЕ
                          Евгения Балабанова
                          last edited by

                          it was soooooo simple solution!
                          I hope this helps someone.

                          My Answer:

                          1. Install the correct version х64 notepad++ (if you installed the wrong version, etc.)
                          2. Сlick the right mouse button on your file in WinSCP->correct…->editor->…
                          3. Delete the old path to notepad++ and add new path to new notepad++ (C:\Program Files\Notepad++\notepad++.exe)
                            that’s all
                          1 Reply Last reply Reply Quote 0
                          • Ramani NR
                            Ramani N
                            last edited by

                            This may help someone. I was in thew same situation as everyone else & none of the solutions worked for me. I think it is a bug because I had this particular issue with only 2 of the many I had open in NPP.

                            Also, I was able to make changes to these 2 files only yesterday & save them without any issues. And, it was a work machine & didn’t have the privileges to run NPP as admin.

                            Long story short, I took the lazy/poorman’s approach.as below:

                            1. “TestFile.txt”: File => Save As using a different name - say “TestFile_Backup.txt”.
                            2. Close the file “TestFile_Backup.txt”.
                            3. Make sure files “TestFile,txt” & “TestFile_Backup.txt” are identical.
                            4. Delete the original file “TestFile,txt”.
                            5. Rename file “TestFile_Backup.txt” back to “TestFile.txt”.
                            6. Voila - you have saved the file in a roundabout way!
                              By the way, after this fix, I was able to open, make changes & save the file ““TestFile.txt”” successfully.
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            The Community of users of the Notepad++ text editor.
                            Powered by NodeBB | Contributors