Windows Clipboard

Read from and write to the Windows clipboard using PowerShell.

malue-ai Updated 37 repo stars
Get started in 3 steps

File contents

Windows 剪贴板

使用 PowerShell 操作 Windows 剪贴板。

命令参考

读取剪贴板

Get-Clipboard

写入剪贴板

Set-Clipboard -Value "要复制的内容"

从文件复制到剪贴板

Get-Content "C:\path\to\file.txt" | Set-Clipboard

输出规范

  • 读取后展示内容(长文本截断前 500 字符)
  • 写入后确认「已复制到剪贴板」

malue-ai/dazee-small commit 7caefda72d

Frequently asked questions

npx get-skill add malue-ai/windows-clipboard