Table of Contents
This tip is about the how to Use the Right-Click Menu to Copy a File Path in Windows 10. So read this free guide, How to Use the Right-Click Menu to Copy a File Path in Windows 10 step by step. If you have query related to same article you may contact us.
How to Use the Right-Click Menu to Copy a File Path in Windows 10 – Guide
Generally, you need to open a text file in Notepad and then manually copy the content to paste it elsewhere. However, you can also copy the contents of a text or other text-based file directly from the context menu in Windows 10. All you have to do is run a registry hack. By adding and editing some keys in Registry Editor, you can add the Copy to Clipboard option to the context menu of your text files – and then use that option to copy the contents of the text files in a second.
Just follow the steps below to copy the contents of a text file using the context menu: First, open Registry Editor on your computer and navigate to the following address:
HKEY_CLASSES_ROOT SystemFileAssociations text shell
Then create a subkey under the shell key; right-click the shell key and click the New > Key option. You can name the created key as “CopytoClip” or something similar. Now double click this key and then double click it (default) in the right pane. You will see a dialog where you need to set the value data to “Copy to clipboard” and then press OK button button.
After that, create a new subkey in the CopytoClip key and name it “command”. Double-click your default name in the right-hand pane and enter the following command in the Value data field:
cmd.exe / c type “%1 ″ | clip.exe
Close the Registry Editor application. And now, to automate these new settings, you need to create a log file. To do this, open Notepad and enter the following data: Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTSystemFileAssociationstextshellcopytoclip]@ = ”Copy to clipboard”
[HKEY_CLASSES_ROOTSystemFileAssociationstextshellcopytoclipcommand]@ = ”Cmd.exe / c type ”% 1 ”| clip.exe ”Make sure you enter all the details according to the name of the keys and subkeys you created.
After entering the above text in Notepad, go to File > Save As option and while saving the file, select the Save As type in All Files. And add the .reg extension after the filename. See the screenshot below for reference. As you create the log file, the Copy to Clipboard option should appear for all text files. Simply right-click on a text file, click the Copy to Clipboard option, and paste the contents of the file wherever you want.
To add the Copy to Clipboard option for HTML files, you must follow the same steps used for text files. The only difference is that the HTML file type will be located at the address below in Registry Editor:
HKEY_CLASSES_ROOT ChromeHTML shell Locate the above address and then create subkeys and registry files as discussed in method (1) for text files. I hope that tutorial helps you to quickly copy the file contents to the clipboard using the context menu.
Final note
I hope you like the guide How to Use the Right-Click Menu to Copy a File Path in Windows 10. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.