In XP, you can quickly copy the complete path of a file to the clipboard as in Vista.
In Windows XP, you can drag and drop files.But in Vista, I found a disgusting "new feature", which is actually removed. If you want to obtain the complete path of a file, you must manually copy the file name through "RENAME", and then get the address bar to work together with that path, if it is a long file name, you must add a "symbol to both the left and right, which is really annoying ......
However, I believe Microsoft will not be so shameless, So Google found many posts that complained like me, and only from those posts found that there was actually a hidden command, you can easily copy the complete path of a file to the clipboard, which makes up for the defect that you cannot drag the file to cmd.
The operation is simple: press shift first, and then right-click a file, there will be an"Copy to path". In this way, you can copy the complete text of the file.
=============================== Boring split line ========================== ===
Then Baidu went down, and the articles that introduced this technique were rampant. Ah, shame. If you do not find any more "copy as path" in your right-click menu, what is your system? I am talking about Vista ~~~~~ (Have you followed the operation in XP? ^ _!)
However, I think this feature is also needed when I use XP many times, so I also found a simple implementation method on Google. Original article: http://www.winhelponline.com/blog/add-copy-as-path-option-to-the-context-menu-in-windows-xp/
First, download a Microsoft applet (less than 6 K) ftp://ftp.microsoft.com/Services/TechNet/samples/PS/Win98/Reskit/FILE/CLIP.EXE
Http://xiazai.jb51.net/201101/tools/clip.rar
Second, save the following content as copypath. vbs
Http://www.winhelponline.com/blog/wp-content/uploads/copypath.vbs
ASP/Visual Basic Code
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """"
- 'Copyright notice: This script and all material at winhelponline.com are registered
- 'With "the UK Copyright service". no part of the website can be distributed or...
- 'Republished without the author's written permission.
- 'Copyright? 2008 by Ramesh srinloud. All rights reserved.
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """"
- 'Copypath. vbs-file description
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """"
- 'Copy the path of a file or folder to the clipboard
- 'Created on May 10,200 8
- 'Copyright? 2008 Ramesh srin.pdf.
- 'Author: Ramesh srinence, Microsoft MVP (Windows desktop experience)
- 'Website: http://www.winhelponline.com
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """"
- Set wshshell = wscript. Createobject ("wscript. Shell ")
- Strmsg = "completed! "& CHR (10) & CHR (10) &" copypath. vbs -? 2008 Ramesh srinesh "& CHR (10) & CHR (10) &" visit us at http://www.winhelponline.com/blog"
- Strbasebrch = "HKLM \ SOFTWARE \ Classes \"
- If wscript. Arguments. Count <> 0 then
- Wshshell. Run "% comspec %/C" & "Echo" & CHR (34 )&_
- Wscript. Arguments. Item (0) & CHR (34) & "| clip.exe", 0
- Else
- RTN = trim (ucase (inputbox ("type install to add the copy as path context menu option, or type uninstall if you wish to remove the context menu option from your system. "," processing ing copypath. vbs... "," Install ")))
- If RTN = "Install" then runinstall
- If RTN = "Uninstall" then rununinstall
- End if
- Sub runinstall
- 'Add registry values
- On Error resume next
- Strcmd = "wscript.exe % SystemRoot % \ copypath. vbs" & CHR (34) & "% 1" & CHR (34)
- Wshshell. regwrite strbasebrch & "allfilesystemobjects \ shell \ copypath \", "copy as path", "REG_SZ"
- Wshshell. regwrite strbasebrch & "allfilesystemobjects \ shell \ copypath \ extended", "", "REG_SZ"
- Wshshell. regwrite strbasebrch & "allfilesystemobjects \ shell \ copypath \ command \", strcmd, "reg_expand_sz"
- On Error goto 0
- Msgbox strmsg, vbokonly, "installed"
- End sub
- Sub rununinstall
- 'Remove the registry values added by this script.
- On Error resume next
- Wshshell. regdelete strbasebrch & "allfilesystemobjects \ shell \ copypath \ command \"
- Wshshell. regdelete strbasebrch & "allfilesystemobjects \ shell \ copypath \"
- On Error goto 0
- Msgbox strmsg, vbokonly, "uninstalled"
- End sub
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """""""""""
- 'This script was brought to you by "The winhelponline blog"
- 'Visit us at http://www.winhelponline.com/blog
- '""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""" """""""""""
Third, put the above two files, copypath. vbs and clip. EXE, under the C: \ Windows directory, and double-click copypath. vbs to confirm.
OK. Now, when you try to hold down SHIFT and Right-click a file, is there a "copy as path" in the menu?