diff --git a/README.md b/README.md index c7549352..ccb6208f 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The following PowerShell scripts can be found in the `Scripts/` subfolder: * [weather-report.ps1](Scripts/weather-report.ps1) - prints the local weather report * [weather-worldwide.ps1](Scripts/weather-worldwide.ps1) - prints the current weather of cities world-wide * [wakeup.ps1](Scripts/wakeup.ps1) - sends a magic packet to the given computer, waking him up -* [zipdir.ps1](Scripts/zipdir.ps1) - creates a zip archive of the given folder +* [zip-dir.ps1](Scripts/zip-dir.ps1) - creates a zip archive of the given folder What is PowerShell? ------------------- diff --git a/Scripts/zipdir.ps1 b/Scripts/zip-dir.ps1 similarity index 57% rename from Scripts/zipdir.ps1 rename to Scripts/zip-dir.ps1 index 65c94ca7..53b72a7f 100755 --- a/Scripts/zipdir.ps1 +++ b/Scripts/zip-dir.ps1 @@ -1,13 +1,15 @@ #!/snap/bin/powershell -# Syntax: ./zipdir.ps1 -# Description: creates a zip archive from the given folder +# Syntax: ./zip-dir.ps1 [] +# Description: creates a zip archive of the given folder # Author: Markus Fleschutz # Source: github.com/fleschutz/PowerShell # License: CC0 param([string]$Path) - +if ($Path -eq "" ) { + $URL = read-host "Enter path to folder to zip" +} try { Compress-Archive -Path $Path -DestinationPath $Path.zip