Community
    • Login

    How-To Backup to custom Sub-Directory?

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 550 Views 1 Watching
    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.
    • Gen UtilityG Offline
      Gen Utility
      last edited by Gen Utility

      Absent a specified “Custom Backup Directory” NPP will write a simple backup to the current directory, and a verbose backup to .\nppBackup.
      The subdir name “nppBackup” is HARDCODED (??!??) at line 1527 of NppIO.cpp v.7.7.1

      How can i get NPP to write a simple backup to the .\nppBackup directory?
      How can i get it to write simple or verbose backups to a custom sub-directory, eg. .\MyBack ?

      I can type in to the “Custom Backup Directory” - something like .\MyBack, but when i Save i get an error pop-up like TEXT("The previous version of the file could not be saved into the backup directory at "$STR_REPLACE$".\r\rDo you want to save the current file anyways

      It looks like the “Custom Backup Directory” needs to be a fully qualified directory name (after any environmental params are expanded) and not a lonely subdir name.

      It seems that at Nppio.cpp line 1512 if the fn_bak starts with a "." then the current file’s directory should be applied, similar to line 1521.

      Is there a clever alternative to get what i want?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @Gen Utility
        last edited by

        @Gen-Utility said in How-To Backup to custom Sub-Directory?:

        Is there a clever alternative to get what i want?

        I don’t believe so.
        Developers designed the feature how they believed it would be most useful to users.
        In 5+ years of “watching” I don’t think I’ve ever seen a similar complaint/desire.
        But surely you can ask that your desired functionality be implemented.
        See the FAQ entry on making a feature request.

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors