Hacker News new | ask | show | jobs
by cstuder 2194 days ago
Another tip: Shift-Right-Click a file in Explorer and "Copy as path" will appear in the context menu.

Puts the full file path in your clipboard.

3 comments

Da fck.

I recently learned you can add this feature to the right click context menu via adding a registry entry.

If I’d’a known shift-right click I wouldn’t make bothered.

Shift right click has always been the way to get the "advanced" context menu. Well, at least back to Windows 95. Fun fact: since the shortcut for the context menu is Shift+F10, you'll always get the extended menu since you'll always have shift pressed when the menu appears.
I’m one of the ten thousand today:

https://xkcd.com/1053/

Did not know that! I've always used the "menu key" for keyboard access to the context menu instead.
Looks like shift+menu key does the same thing, too
I only learned last year (when I was still on Windows 7) that you can right-click drag (for example a file on to an email in outlook) and it will throw a pop-up where you can select "Create hyperlink here".

It dropped my jaw...after decades using Windows I had never known right click and drag was even a thing!

Control+drag = copy; Shift+drag = move; Control+Shift+drag = link.
Yes, but right-click drag means clear visual confirmation of the action, the physical movements are the same for all types of operation, and you can make up your mind what to do after you've indicated where. I only use shift or control if I accidentally left-click drag.
The Right-Click Drag context menu is also an Explorer Shell Extension Point (going way back) and some apps can add additional behaviors to it beyond Cut/Copy. 7-Zip for instance includes a lot of options in a sub-menu. For instance, Right-Click Drag a set of .zip files in a Downloads folder to a more permanent home folder and you can select 7-Zip > Extract to *\ and 7-Zip will expand all of the .zip files into folders based on the names of the .zip files.
From memory, this was added in Windows Vista. On XP and 2000, you needed the registry entry. Another popular similar entry was "Command Prompt here".
Oh yeah! Microsoft released PowerToys back in the day that had clever things like this.
The new PowerToys [1] are interesting too, though somewhat different in scope from the old ones.

[1] https://github.com/microsoft/PowerToys

equivalent on Mac: Alt + Right Click.
Windows requires the modifier key held down when clicking, but macOS adjusts the open menu according with currently held down modifiers.
True, and definitely something Windows should have.
If you're talking about Mac, you mean "Option", not "Alt".
OMG!!! where have you been my whole life. you just saved me tons of stress when getting a file path in explorer
Also in the Shift-Right-Click is open command prompt in directory. Nice symmetry there.