PowerShell/Scripts/zipdir.ps1

12 lines
293 B
PowerShell
Raw Normal View History

2020-06-23 20:34:12 +02:00
#!/snap/bin/powershell
#
# Syntax: zipdir <path-to-folder>
# Description: creates a zip archive of the given folder
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
#
param([string]$Path)
Compress-Archive -Path $Path -DestinationPath $Path.zip
exit 0