What command should I use through PowerShell to send a file to the Clipboard?
I've tried this command: "C: \ Test.text" | Set-Clipboard
But this command copies the text "C: \ Test.text" and not the file into memory.
What command should I use through PowerShell to send a file to the Clipboard?
I've tried this command: "C: \ Test.text" | Set-Clipboard
But this command copies the text "C: \ Test.text" and not the file into memory.
I think this solves your problem;)
Set-Clipboard -Path C:\NomeArquivo.txt
I think the simplest way is to use the commands type
and clip
:
type C:\NomeArquivo.txt|clip