yank the file path on Windows #1320
Answered
by
joelim-work
azinsharaf
asked this question in
Q&A
-
how can i copy the full file path into the clipboard on Windows os? |
Beta Was this translation helpful? Give feedback.
Answered by
joelim-work
Jun 29, 2023
Replies: 1 comment 2 replies
-
The simple answer is pipe the value of
However this leaves the path wrapped in quotes (as paths can contain spaces), and also appends a new line. This can be solved by using
For PowerShell users, map Y &Set-Clipboard -Value ($Env:f -replace '"') |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The config snippets I provided above were for Windows CMD. From the looks of it you're using PowerShell, in which case you can simply use: