Skip to content

Commit 55aa845

Browse files
sri-sethudmmqzsebastiaanspeck
authored
scb, Set-Clipboard: add pages (#18964)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Sebastiaan Speck <[email protected]>
1 parent cd6b4f7 commit 55aa845

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

pages/windows/scb.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# scb
2+
3+
> This command is an alias of `Set-Clipboard`.
4+
5+
- View documentation:
6+
7+
`tldr Set-Clipboard`

pages/windows/set-clipboard.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Set-Clipboard
2+
3+
> Powershell command to set content to clipboard.
4+
> Note: `scb` can be used as an alias for `Set-Clipboard`.
5+
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard>.
6+
7+
- Copy text to the clipboard:
8+
9+
`Set-Clipboard -Value "{{text}}"`
10+
11+
- Copy multiple texts to clipboard separated by new line:
12+
13+
`Set-Clipboard -Value @("{{text 1}}", "{{text 2}}", "{{text 3}}")`
14+
15+
- Copy files or directories to clipboard:
16+
17+
`Set-Clipboard -Path "{{path/to/files_or_directories}}"`
18+
19+
- Copy multiple files:
20+
21+
`Set-Clipboard -Path "{{path/to/file1}}","{{path/to/file2}}","{{path/to/file3}}"`
22+
23+
- To clear the clipboard:
24+
25+
`Set-Clipboard ""`

0 commit comments

Comments
 (0)