diff --git a/pages/windows/scb.md b/pages/windows/scb.md new file mode 100644 index 00000000000000..989b322e3f99ef --- /dev/null +++ b/pages/windows/scb.md @@ -0,0 +1,7 @@ +# scb + +> This command is an alias of `Set-Clipboard`. + +- View documentation: + +`tldr Set-Clipboard` diff --git a/pages/windows/set-clipboard.md b/pages/windows/set-clipboard.md new file mode 100644 index 00000000000000..7b1b356e377d08 --- /dev/null +++ b/pages/windows/set-clipboard.md @@ -0,0 +1,25 @@ +# Set-Clipboard + +> Powershell command to set content to clipboard. +> Note: `scb` can be used as an alias for `Set-Clipboard`. +> More information: . + +- Copy text to the clipboard: + +`Set-Clipboard -Value "{{text}}"` + +- Copy multiple texts to clipboard separated by new line: + +`Set-Clipboard -Value @("{{text 1}}", "{{text 2}}", "{{text 3}}")` + +- Copy files or directories to clipboard: + +`Set-Clipboard -Path "{{path/to/files_or_directories}}"` + +- Copy multiple files: + +`Set-Clipboard -Path "{{path/to/file1}}","{{path/to/file2}}","{{path/to/file3}}"` + +- To clear the clipboard: + +`Set-Clipboard ""`