Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pages/windows/scb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# scb

> This command is an alias of `Set-Clipboard`.

- View documentation:

`tldr Set-Clipboard`
25 changes: 25 additions & 0 deletions pages/windows/set-clipboard.md
Original file line number Diff line number Diff line change
@@ -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: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard>.

- 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 ""`
Loading