reference link
- Get-Clipboard (Microsoft.PowerShell.Management) - PowerShell | Microsoft Docs
- Set-Clipboard (Microsoft.PowerShell.Management) - PowerShell | Microsoft Docs
本地查看剪切板相关功能的命令:
别名分别为: - get-clipboard->
gcb
- set- clipboard->
scb
直接复制文本文件中的内容内容到剪切板
体验情况
目前对于powershell 7+ 版,剪切板功能还是比较有限的(基本是针对文本,而不宜对二进制对象进行操作)
对于powershell5.+版本,提供了-format
等参数,可以有更多操作