Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 快速複製文字檔內容到剪貼簿:右鍵選單加入「複製文字內容」

編輯:Windows 7 系統介紹

需求

不想開啟文字檔就能直接複製其內容?透過登錄檔為 .txt 檔案右鍵選單新增「複製文字內容」指令。

設定步驟

  1. Win+R → regedit → 依序展開:
    HKEY_CLASSES_ROOT → txtfile → shell
  2. 在 shell 下新增項目 copycontents,預設值改為「複製文字內容」。
  3. 在 copycontents 下新增 command,預設值設為:
    cmd /c clip < "%1"
  4. 確定、關閉登錄編輯器、重新登入或重開機生效。

使用方式

任意 .txt 檔右鍵 → 「複製文字內容」 → 內容已在剪貼簿。若剪貼簿內容過多,隨意複製一段文字即可清空。

注意

大檔案複製可能導致剪貼簿佔用大量記憶體,建議僅用於小型文字檔。

Copyright © Windows教程網 All Rights Reserved