mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Added zipdir.ps1
This commit is contained in:
parent
2942b3133a
commit
f0673bb556
@ -21,6 +21,7 @@ Scripts Explained
|
||||
* **txt2wav.ps1** - converts text into a audio .WAV file
|
||||
* **weather.ps1** - prints the current weather forecast
|
||||
* **wakeup.ps1** - sends a magic packet to the given computer, waking him up
|
||||
* **zipdir.ps1** - creates a zip archive of the given folder
|
||||
|
||||
Frequently Asked Questions (FAQ)
|
||||
--------------------------------
|
||||
|
11
Scripts/zipdir.ps1
Normal file
11
Scripts/zipdir.ps1
Normal file
@ -0,0 +1,11 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user