Main ConvertTo-Zip with a few additions and fixes
+ ConvertTo-Zip, originally created to mass convert CBRs to CBZs It will only be avilable when 7-zip is available (7z executable) Features: Shows progress, can work recursively (preserving folder structure), knows to move completed files. + Show-Progress: Shorthand for common progress related output manipulation (calculation of completion based on time, or item count, and verbose output if needeed) + ConvertFrom-TimeSpan: string output from timespan, used by Show-Progress + Get-Path updated to be more efficient (no need for exception handling) + PathProcessingFunctions loads a utility function GetShellSafePath * Repair-Permissions added some status reporting
This commit is contained in:
parent
d1e24fa7eb
commit
449a297d8b
7 changed files with 276 additions and 19 deletions
4
base/profile.d/PathProcessingFunctions.ps1.ps1
Normal file
4
base/profile.d/PathProcessingFunctions.ps1.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
function Get-ShellSafePath { param([string]$LiteralPath)
|
||||
"`"$([Management.Automation.WildcardPattern]::Escape($LiteralPath))`""
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue