Added list-clipboard.ps1

This commit is contained in:
Markus Fleschutz
2021-01-12 16:42:57 +01:00
parent c28dec1f91
commit 67aa4372a6
3 changed files with 17 additions and 0 deletions

15
Scripts/list-clipboard.ps1 Executable file
View File

@ -0,0 +1,15 @@
#!/snap/bin/powershell
<#
.SYNTAX ./list-clipboard.ps1
.DESCRIPTION lists the contents of the clipboard
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
get-clipboard
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}