Community
    • Login

    Howto Question: Save and Archive via 7-zip with password

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 3.7k Views 2 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.
    • Charles KelsoeC Offline
      Charles Kelsoe
      last edited by

      Hi,

      I am editing a lot of files where the saved file needs to be archived with a password. For example I edit thefile.xml. That file needs to be saved to disk at the location it was opened and it needs to be archived to thefile.7z with a password (it is the same password for all files). Is there a way to set this up - even as a new menu item for the 7-zip archive step?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner
        last edited by

        Is this Notepad++ related?

        1 Reply Last reply Reply Quote 0
        • Claudia FrankC Offline
          Claudia Frank @Charles Kelsoe
          last edited by Claudia Frank

          @Charles-Kelsoe

          install NppExec and save something like this as the script to be executed.

          npp_save
          cd D:\PortableApps\PortableApps\7-ZipPortable\App\7-Zip64
          7z.exe a -pYOURPASSWORD $(CURRENT_DIRECTORY)\$(NAME_PART).zip  $(FULL_CURRENT_PATH)
          

          Of course you need to replace YOURPASSWORD and the .zip extension can also be a 7z extension.
          Changing the directory is only needed if 7z.exe can’t be find.
          7z.exe -? gives you additional informations about the parameters accepted.

          Cheers
          Claudia

          Charles KelsoeC 1 Reply Last reply Reply Quote 1
          • Charles KelsoeC Offline
            Charles Kelsoe @Claudia Frank
            last edited by

            @Claudia-Frank Thanks for this info. That was the part I was missing. I appreciate your understanding of the question and providing a very helpful solution.

            @Scott-Sumner240 - Thanks for your contribution to the conversation. Maybe you can learn from the very helpful response from Claudia as I did.

            1 Reply Last reply Reply Quote 0
            • Scott SumnerS Offline
              Scott Sumner
              last edited by

              Point taken; apologies. Lately my brain shuts down before reading all the way through some posts–you wouldn’t believe how many are about things that don’t related to N++ at all, or that are about things that you really shouldn’t use N++ for.

              1 Reply Last reply Reply Quote 3

              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