Community

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

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

    General Discussion
    3
    5
    2840
    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 Kelsoe
      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 Frank 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner last edited by

        Is this Notepad++ related?

        1 Reply Last reply Reply Quote 0
        • Claudia Frank
          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 Kelsoe 1 Reply Last reply Reply Quote 1
          • Charles Kelsoe
            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 Sumner
              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
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors