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/gcb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# gcb

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

- View documentation for the original command:

`tldr get-clipboard`
25 changes: 25 additions & 0 deletions pages/windows/get-clipboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Get-Clipboard

> A powershell command to get content from clipboard.
> Note: `gcb` can be used as an alias for `Get-Clipboard`.
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-clipboard>.

- Get clipboard text:

`Get-Clipboard`

- Get clipboard content as specific text format:

`Get-Clipboard -TextFormatType {{Text|Html|Rtf}}`

- Get raw clipboard content:

`Get-Clipboard -Raw`

- Retrieve an Image:

`Get-Clipboard -Format Image`

- Get file paths copied in explorer:

`Get-Clipboard -Format FileDropList`
Loading