Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    ReadOnly flag

    Help wanted · · · – – – · · ·
    2
    3
    450
    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 .-
      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
      • PeterJones
        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 .-
          Nachitous .- last edited by

          That’s good enough.
          Thank you :)

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors