Windows Vista and Windows 7 provide a useful option when you right-click on a file or folder called Copy as path. This option automatically copies the full path of the selected file or folder as text that you can paste into anywhere you can enter text.
NOTE: You may have to press the Shift key while right-clicking on the file or folder to access the option.
The following image shows an example of the text that can be copied using the Copy as path option.
We have found two utilities that make this option available in Windows XP.
PathCopyEx is a small utility that adds an extra option called Copy Path to Clipboard to the context menu for files and folders.
To download PathCopyEx, follow the link below and it’s the first program in the list.
You get a file named PathCopyEx.msi.htm. Remove the .htm from the filename and then double-click on the file to install it. You do not need to reboot your computer to use the utility.
Right-click on any file or folder and select Copy Path to Clipboard from the pop-up menu.
You can then paste the copied text into anywhere that accepts text, such as Notepad.
Ninotech Path Copy
Ninotech Path Copy provides more options than PathCopyEx. You can copy the long name, long folder, or the long path, or the UNC path or Internet path if you are on a network.
Download Ninotech Path Copy from
To install Ninotech Path Copy, unzip the downloaded file. Right-click on the PATHCOPY.INF file and select Install from the pop-up menu. Again, you do not need to reboot your computer.
To use Ninotech Path Copy, right-click on a file or a folder and select Copy Path from the pop-up menu. More options display on a submenu.
Select an option depending on how much of the path you want to copy. If you want to copy the entire path, including the filename, select Copy Long Path.
You can add custom copy methods to Ninotech Path Copy using the Setup feature. To access the Setup dialog box, right-click on any file or folder and select Copy Path | Setup from the pop-up menu.
On the Menu tab, you can choose which options you want to be available in the context menu. You can also add 5 customized copy methods to the context menu.
NOTE: The UNC Path and Internet Path options are only available in a network environment.
The “Short” options convert the path and filename to the 8.3 format.
To define your own custom copy method, click one of the other tabs, such as Copy method 1, define your settings, and then click the corresponding check box on the Menu tab to activate that option on the context menu.
Enter a name for the copy method in the Menu name edit box. This name displays on the context menu. Once you have specified a name for the menu option, that name also displays on the Menu tab.
Select the method you want to use in the Copy method box. If you want to replace text when the filename, folder, or path is copied, enter the desired text to be found and replaced in the Replace text box. If you want to change capitalization or change slashes, select the desired options in the Change capitalization and Change slashes section.
You may have noticed earlier in this post that the Copy as path option in Windows 7 places quotes around the copied text. By default, the standard options in Ninotech Path Copy do not do this. If you want your custom copy method to do this, select the Enclose in quotation marks check box.
When you have specified your settings for your custom copy method and selected the corresponding check box on the Menu tab, click the Apply button and then the OK button.
Here are the download links again:
by Lori Kaufman