Create a Context Menu Item to Copy a Text File To the Clipboard in Windows 7 / Vista / XP Tạo một Context Menu Mã để Copy file văn bản Để các Clipboard trong Windows 7 / Vista / XP
If you are the type of person that likes to keep a lot of information stored in text-format files on your drive, you've probably encountered a scenario where you want to copy that information to the clipboard… so you open the file in notepad, select all, then copy to the clipboard. Nếu bạn là loại người đó thích giữ rất nhiều thông tin được lưu giữ trong văn bản định dạng tập tin trên ổ đĩa của bạn, bạn đã có thể gặp phải một kịch bản mà bạn muốn sao chép thông tin đó vào clipboard ... do đó bạn mở file trong Notepad , chọn tất cả, sau đó sao chép vào clipboard. What if you could do it with a simple context menu item instead? Bạn phải làm gì nếu có thể làm điều đó với một mục trình đơn ngữ cảnh đơn giản, thay vào đó?
Using a little registry hacking and the clip.exe utility built into Windows 7 and Vista, we can do just that, and we can even hide it behind the Shift + Right-Click menu so that it won't waste space on the menu unless you hold down the shift key. Hacking đăng ký sử dụng một chút và tiện ích đó clip.exe xây dựng trong Windows 7 và Windows Vista, chúng tôi có thể làm việc đó, và chúng tôi thậm chí có thể ẩn đằng sau nó Shift + Right-Click vào menu để nó sẽ không lãng phí không gian trên trình đơn, trừ khi bạn giữ phím chuyển dịch.
Using the Copy to Clipboard Hack Sử dụng Copy to Clipboard Hack
Simply hold down the Shift key and right-click on a text file, and you'll see a new item for “Copy to Clipboard”: Đơn giản chỉ cần giữ phím Shift và nhấp chuột phải vào một tập tin văn bản, và bạn sẽ thấy một mục mới cho "Sao chép vào Clipboard":

Now you'll have the information on the clipboard for easy pasting into whatever application you'd like: Bây giờ bạn sẽ có những thông tin vào clipboard để dán dễ dàng vào bất kỳ ứng dụng mà bạn muốn:

Note: If you are using Windows XP, you can Lưu ý: Nếu bạn đang sử dụng Windows XP, bạn có thể download clip.exe from Microsoft download clip.exe từ Microsoft . . Just save the file in the Windows directory and the rest of the hack should work for you. Chỉ cần lưu tập tin trong thư mục Windows và phần còn lại của hack nên làm việc cho bạn.
Manual Registry Hack (for .txt files) Hướng dẫn sử dụng Registry Hack (cho. Tập tin txt)
Open up regedit.exe through the start menu search or run box, and then browse down to the following key: Mở regedit.exe thông qua việc tìm kiếm hay hộp trình đơn bắt đầu chạy, và sau đó duyệt xuống khóa dưới đây:
HKEY_CLASSES_ROOT\txtfile\shell HKEY_LOCAL_MACHINE \ txtfile \ shell

Underneath each file type in the registry (for instance txtfile), there is a shell key with a list of actions under it. Bên dưới mỗi loại file trong registry (ví dụ txtfile), có một khóa shell với một danh sách các hành động theo nó. We'll create a new key called “copytoclip”, and then a key under it called “command”. Chúng tôi sẽ tạo một khóa mới tên là "copytoclip", và sau đó một phím dưới nó được gọi là "lệnh". Set the default value of “copytoclip” to something useful like “Copy Contents to Clipboard”, and then set the default value of “command” to the following: Thiết lập giá trị mặc định của "copytoclip" cho một cái gì đó có ích như "Sao chép nội dung vào Clipboard", và sau đó thiết lập giá trị mặc định của "lệnh" như sau:
cmd /c clip < “%1″ cmd / c clip < "% 1"
What we're doing is running a command prompt, and then piping the file into the clip.exe utility. Những gì chúng tôi đang làm là chạy một dấu nhắc lệnh, và sau đó ống dẫn tập tin vào các tiện ích clip.exe. You could do the same thing from the command prompt, or in a script. Bạn có thể làm điều tương tự từ dấu nhắc lệnh, hoặc trong một kịch bản.
You could duplicate this same tweak for other file types, such as html or code files, by finding their key in the registry and adding the same menu items. Bạn có thể lặp chỉnh này giống nhau cho các loại tập tin khác, như html hoặc mã tác phẩm, bởi việc tìm kiếm chính của họ trong registry và thêm các mục menu như nhau.
Downloadable Registry Hack Miễn phí Registry Hack
Simply download, extract, and double-click on CopyContentsToClipboardTXT.reg to the clipboard. Đơn giản chỉ cần tải về, giải nén, và nhấp đúp chuột vào CopyContentsToClipboardTXT.reg vào clipboard. You can remove the hacks with the RemoveCopyContentsToClipboard.reg file. Bạn có thể loại bỏ các hacks với file RemoveCopyContentsToClipboard.reg.
Just remember to hold down the shift key while right-clicking on a text file. Chỉ cần nhớ để giữ phím dịch chuyển trong khi kích chuột phải vào một tập tin văn bản.
Download CopyContentsToClipboardTXT Registry Hack Tải về CopyContentsToClipboardTXT Registry Hack

Daily Email Updates Email cập nhật hàng ngày
You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:



It doesn't hidden! Nó không ẩn!
I can even see it without holding the SHIFT key. Tôi thậm chí có thể nhìn thấy nó mà không cần giữ phím Shift.
i found the solution! i tìm thấy giải pháp!
you hav to download the registry hack to hide it! bạn hav để tải về các registry hack để ẩn nó!
or add an empty string value named “Extended” in the “copytoclip” Key hoặc thêm một giá trị chuỗi rỗng đặt tên là "mở rộng" trong copytoclip "" Key