Search notes:

PowerShell cmdLet Get-Clipboard

get-clipboard returns the content of the clipboard.

Saving an image that is stored in the clipboard

If an image is copied into the clipboard, get-clipbaord with -format image returns an object whose type is System.Drawing.Bitmap. Such an object has the Save() method to store the image on hard disk:
$img = get-clipboard -format image
$img.Save("$pwd\lakes-and-trees.png")

Linux

On Linux, get-clipboard requires the xclip utility to be referenced in the PATH environment variable.

See also

Powershell command noun: clipboard

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758200551, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/clipboard/get(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78