2016-04-08 38 views
1

我試圖從Windows 10上使用PowerShell 5的文件夾中創建一個zip。看完這個stackoverflow post我嘗試了壓縮存檔方法。在PowerShell中使用壓縮存檔

當我鍵入:

Compress-Archive -Path 'C:\Users\Test\demo' -DestinationPath 'C:\Users\Test\demo.zip' -verbose 

我得到一個詳細的錯誤說:

VERBOSE: The partially created archive file 'C:\Users\Test\demo.zip' is deleted as it is not usable. 

我已經看了網上隨處可見,我沒能找到解決這個。任何人都知道發生了什麼事?

回答

0

如果您正在壓縮的文件夾爲空,則會出現此消息。