Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 General Discussion
    5 貼文 3 Posters 3.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Charles KelsoeC
      Charles Kelsoe
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Scott SumnerS
        Scott Sumner
        最後由 編輯

        Is this Notepad++ related?

        1 條回覆 最後回覆 回覆 引用 0
        • Claudia FrankC
          Claudia Frank @Charles Kelsoe
          最後由 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 條回覆 最後回覆 回覆 引用 1
          • Charles KelsoeC
            Charles Kelsoe @Claudia Frank
            最後由 編輯

            @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 條回覆 最後回覆 回覆 引用 0
            • Scott SumnerS
              Scott Sumner
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 3
              • 第一個貼文
                最後的貼文
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors