Remove quotes and auto-hyperlink when using Explorer's "Copy as path" context menu

10,720

If you are in a position to install a 3rd party application I can recommend Path Copy Copy. You can customise the options that display in the right click menu within Explorer to show only the types of links you use most.

Share:
10,720

Related videos on Youtube

John
Author by

John

Updated on September 18, 2022

Comments

  • John
    John almost 2 years

    I frequently use Shift+Right-Click and 'Copy as path' context menu.
    But when pasting, it results in a quoted version of the file path e.g.

    "C:\Folder\myFile.txt"
    

    After pasting it, it is really annoying having to remove the quotes and then hyperlink it to itself. Anyone aware of an alternate method that removes the quotes and/or hyperlinks to its own location?

    • kmote
      kmote almost 11 years
      I always navigate to the directory then copy the address bar. (Pasting then creates the hyperlink automatically.) Does that not work for you?
    • John
      John almost 11 years
      @kmote I used a directory for simplicity in the example (bad decision on my part - just updated the question), usual case is to link to a file. Tried it and it doesn't hyperlink. This works for browsers for URLs, not for files/folders in MS Explorer.
    • kmote
      kmote almost 11 years
      I agree with you: it's a pain. One slight shortcut: Do the Copy as path, then paste the quoted path, then select the entire thing (either with or without the quotes), then Ctrl-K, Ctrl-V, Enter. This won't eliminate the quotes, but it will make the whole thing a hyperlink, it's fairly painless, and the quotes don't matter.
    • John
      John almost 11 years
      ctrl+k then ctrl+v definitely speeds things up. thanks! One note is that you don't have to paste or even select it first, just go to the desired location and ctrl+k, ctrl+v and enter.
    • user250343
      user250343 over 8 years
      If you paste the copied path in the File Explorer address bar then you get a "Server not found" message. If you create a new folder and paste the path into it then the quotes are invalid (a computer can deal with this scenario and just do the right thing). So the format is not even valid in File Explorer. However, the target of the result is typically in other programs. All dialogs in other programs that I know of e.g. File Open dialogs break when quotes are added. Microsoft should fix this bug because the copied format is not compatible with anything I know of including File Explorer itself.
    • w32sh
      w32sh over 6 years
  • Andrew
    Andrew over 8 years
    great little addon on... thanks, saves like 5 clicks and 5 seconds every time
  • JinSnow
    JinSnow over 5 years
    (it's open source : github.com/clechasseur/pathcopycopy )