mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Added list-clipboard.ps1
This commit is contained in:
parent
c28dec1f91
commit
67aa4372a6
@ -24,6 +24,7 @@ list-anagrams.ps1, lists all anagrams of the given word
|
||||
list-automatic-variables.ps1, lists PowerShell automatic variables
|
||||
list-empty-dirs.ps1, lists empty subfolders in a directory tree
|
||||
list-current-timezone.ps1, lists the current time zone details
|
||||
list-clipboard.ps1, lists the contents of the clipboard
|
||||
list-files.ps1, lists all files in the given folder and also in every subfolder
|
||||
list-formatted.ps1, lists the current working directory formatted in columns
|
||||
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
|
||||
|
|
@ -30,6 +30,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
|
||||
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file
|
||||
* [list-anagrams.ps1](Scripts/list-anagrams.ps1) - lists all anagrams of the given word
|
||||
* [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists PowerShell automatic variables
|
||||
* [list-clipboard.ps1](Scripts/list-clipboard.ps1) - lists the contents of the clipboard
|
||||
* [list-current-timezone.ps1](Scripts/list-current-timezone.ps1) - lists the current time zone details
|
||||
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
|
||||
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software
|
||||
|
15
Scripts/list-clipboard.ps1
Executable file
15
Scripts/list-clipboard.ps1
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user