Posted 2022-06-24Updated 2025-01-14環境設定與部屬a few seconds read (About 105 words)Powershell呼叫7zip如果在powershell 發現找不到7z 指令,可以用下面的script替代 123456789101112$7zipPath = "$env:ProgramFiles\7-Zip\7z.exe"if (-not (Test-Path -Path $7zipPath -PathType Leaf)) { throw "7 zip file '$7zipPath' not found"}Set-Alias 7zip $7zipPath$Source = "c:\BackupFrom\backMeUp.txt"$Target = "c:\BackupFolder\backup.zip"7zip a -v50m -mx=9 $Target $Source #-v50m 代表將檔案分割成每50MB一包 7-zip 指令參考 參考:https://stackoverflow.com/a/25288780 Powershell呼叫7ziphttps://jenhaoyang.github.io/環境設定與部屬/dbbc7a2b226d/AuthorStevenPosted on2022-06-24Updated on2025-01-14Licensed under#7zip