ReadOnly flag



  • 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++?



  • @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.



  • That’s good enough.
    Thank you :)


Log in to reply