I use this script for years and I
m very happy with it. Simply select a file or directory in Windows Explorer and copy its path to the clipboard directly from the context menu.
To install it, run a command shell as admin and call the script without an argument. After that it is installed and can be used from the context menu.