sindresorhus/clipboardy

Powershell on Windows

Richienb opened this issue · 1 comments

Since Windows 7, Powershell has been pre-installed and contains Get-Clipboard and Set-Clipboard cmdlets:

Example of setting and getting clipboard contents in Powershell

There's also clip which copies to the clipboard.

Is this better than the custom pre-built binaries that are currently used?

Not every system has PowerShell though. Admins can disable it. But I guess we could use this first and fall back to the custom one.