• Login
Community
  • Login

ReadOnly flag

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 953 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.
  • N
    Nachitous .-
    last edited by Aug 27, 2019, 10:50 AM

    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
    • P
      PeterJones
      last edited by PeterJones Aug 27, 2019, 1:20 PM Aug 27, 2019, 1:20 PM

      @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
      • N
        Nachitous .-
        last edited by Aug 28, 2019, 6:56 AM

        That’s good enough.
        Thank you :)

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