Community
    • Login

    ReadOnly flag

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 942 Views
    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.
    • Nachitous .-N
      Nachitous .-
      last edited by

      If I have a file in my system and it’s read only, once opened in NP++ I cannot edited, obviously. If I right-click it’s tab and click the “Clear Read-Only flag” option, the file becomes editable in NP++ and the read-only attribute gets changed in the file system. Which is also, expected.
      But, after I make all my editions in the file and save it, if I again right-click it’s tab and click the “Read-Only” option the file is only “locked” within NP++ but the attribute in the file system remains false.
      Is there a way to change the file system attribute back to readonly from NP++?

      1 Reply Last reply Reply Quote 2
      • PeterJonesP
        PeterJones
        last edited by PeterJones

        @Nachitous-.- said:

        Is there a way to change the file system attribute back to readonly from NP++?

        Using a native, builtin Notepad++ command: not that I know of.

        Using Notepad++ to call a Windows system command, yes: Open the Run > Run… menu, and run the command cmd /C attrib +R "$(FULL_CURRENT_PATH)". You could even click Save… in that dialog box, and assign it to a keyboard shortcut if you want to have that command easily available.

        1 Reply Last reply Reply Quote 3
        • Nachitous .-N
          Nachitous .-
          last edited by

          That’s good enough.
          Thank you :)

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors