ccon.ps1 is windows powershell script that will copy a file to clipboard and show a windows toast notification
For this to work you need wintoast.exe in your PATH. I personally got wintoast.exe from Git installation directory
| param ([string]$path) | |
| Get-Content "$path" -Raw | Set-Clipboard | |
| $filename = [System.IO.Path]::GetFileName("$path") | |
| Start-Process -FilePath "wintoast.exe" -NoNewWindow -ArgumentList @( | |
| '--appid', 'ccon.ps1', | |
| '--appname', '"Copy content"', | |
| '--text', "`"$filename`"", | |
| '--attribute', '"Filecontent is copied."', | |
| '--expirems', '2', | |
| '--image', 'F:\icons\copy-icon.ico' | |
| ) |