如果要壓縮大量檔案,並且要為每個檔案新增密碼保護,那麼最簡單或最快速的方法是什麼?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。
今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。
超級使用者讀者DAE想知道如何用盡可能少的步驟壓縮和密碼保護檔案:
I need a way to take a bunch of files and compress them into separate zip files with each using the same password. I want to be able to do this in one simple step. I have created a batch file that zips each of them using 7zip (which worked perfectly), but does not password protect them.
Is there a command that I can add to the batch file that includes the password? Or alternatively, how can I create a batch file that will password protect the compressed files?
如何在儘可能少的步驟中壓縮和密碼保護檔案?
超級使用者貢獻者DavidPostill為我們提供了答案:
How can I create a batch file that will password protect the compressed files?
Use the -p option, -p (set password) switch, which specifies the password.
Syntax
{password} specifies the password
Examples
Compresses *.txt files to archive.7z using the password “secret”. It also encrypts archive headers (-mhe switch) so that the file names will be encrypted.
If compressing folders:
Extracts all files from archive.zip using the password “secret”.
Source: -p (set Password) switch
有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。
...題。如果檔案中丟失了整個資料塊,那麼工具就無法知道如何填補這些空白。不要被欺騙,以為一個更昂貴的應用程式將解決更多的問題!價格與此無關。 ...
您可能曾經處理過ZIP檔案。無論您是想自己歸檔一堆檔案,下載一個應用程式的可移植版本,還是向某人傳送一組檔案,ZIP檔案都是一種快速而簡單的方法。 ...
您已經學習瞭如何建立網站並閱讀了jQuery指南。下一步是什麼?為你的網站建立一個密碼保護區對於保證你的東西的安全是至關重要的。幸運的是,這比你想象的要容易! ...
想學習如何保護快閃記憶體驅動器嗎?不幸的是,你不能用密碼保護整個隨身碟。但是您可以加密分割槽、資料夾和存檔。 ...
...,如果你覺得你的Android在它能做的事情上是有限的,那可能是缺少一個檔案瀏覽器。 ...