File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ # scb
2+
3+ > This command is an alias of ` Set-Clipboard ` .
4+
5+ - View documentation:
6+
7+ ` tldr Set-Clipboard `
Original file line number Diff line number Diff line change 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 "" `
You can’t perform that action at this time.
0 commit comments