PasteIntoFile

eltosMIT活跃维护

Windows 小工具,用快捷键或右键菜单把剪贴板内容直接粘贴进文件,也能把文件内容复制到剪贴板,省去打开文件再操作的麻烦。

Paste clipboard data into files and copy file contents directly via hotkey or context menu

v5.6.1发布于 2026-05-25 19:21 UTC231star +1 / 7 天14fork同步于 2026-11-10 06:06 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本v5.6.1
  1. v5.6.1Version 5.6.1最新正式版2026-05-25 · 2026-05-25 19:21 UTC

    Changes:

    • Translation updates by @VenusGirl @QuentiumYT in #101
    • Fix spurious exception with tray patching mode #103

    Full Changelog: https://github.com/eltos/PasteIntoFile/compare/v5.6...v5.6.1

    📥 INSTALL🪙 DONATE❤️ SAY THANKS

    GitHub release (by tag)

    Free code signing is provided by SignPath.io, certificate by SignPath Foundation. We thank SignPath for supporting this FOSS project with code signing.

  2. v5.6Version 5.62026-03-06 · 2026-03-06 17:07 UTC
    查看更新说明

    What's Changed

    • Add option to enable clipboard patching only for images #88
    • Add setting to disable live clipboard updates by @chandrath in #89
    • Fix a bug where multiple equal formats on the clipboard caused a crash #96
    • Translation updates by @VenusGirl @maicol07 hypnotichemionus4 in #87 #90 #91 #92

    Full Changelog: https://github.com/eltos/PasteIntoFile/compare/v5.5...v5.6

    📥 INSTALL🪙 DONATE❤️ SAY THANKS

    GitHub release (by tag)

    Free code signing is provided by SignPath.io, certificate by SignPath Foundation. We thank SignPath for supporting this FOSS project with code signing.

  3. v5.5Version 5.52025-10-01 · 2025-10-01 16:03 UTC
    查看更新说明

    Changes:

    • Add support for ICS calendar appointments #83
    • Improved previews for various formats
    • Add option to change language #81
    • Add file extension of single files copied to clipboard #85
    • Translation updates by @eltos, @maicol07, hypnotichemionus4
    📥 INSTALL🪙 DONATE❤️ SAY THANKS

    GitHub release (by tag)

    Free code signing is provided by SignPath.io, certificate by SignPath Foundation. We thank SignPath for supporting this FOSS project with code signing.

  4. v5.4.4Version 5.4.42025-06-24 · 2025-06-24 17:44 UTC
    查看更新说明

    Starting with this release, Paste Into File will ship with signed binaries 🚀 Free code signing is provided by SignPath.io, certificate by SignPath Foundation. We thank SignPath for supporting this FOSS project with code signing.

    Thanks to @insane66613 for the suggestion and guidance on code signing with SignPath

    Changes since version 5.4.3:

    • Code signed binaries
    • Translation updates

    GitHub release (by tag)

    📥 INSTALL🪙 DONATE❤️ SAY THANKS
  5. v5.4.3Version 5.4.32025-04-16 · 2025-04-16 19:12 UTC
    查看更新说明

    Changes since Version 5.3:

    • Filename template
      • Add placeholder {2} for copied text, so the filename can be what you copied
      • Allow / to support subfolder structures
      • Add date format placeholder j for day-of-year and w week-of-year #49
    • Subfolder template
      • Add UI to edit
      • Allow absolute paths
    • Filetype support
      • Add support for ico files
      • Improve metafile support (wmf and emf)
      • Improve image detection and support more mime types
      • Recognize extension variants (e.g. tiff for tif or jpeg for jpg)
    • Translations
      • Chinese (traditional) translation by @kisaragi-hiu
      • Chinese (simplified) translation by @crystal-rainslide
      • Portuguese & Brazilian Portuguese translations by @Lucasofchirstms
      • Partial Ukrainian translation by anhelina.zholob
      • Translation updates by @eltos, @maicol07, @jjhitel
      • Japanese translation by @dai  🚀 5.4.1
      • Russian translation by @loyvsc  🚀 5.4.2
      • Spanish translation by @Xmen737  🚀 5.4.3

    Starting with v5.4 PasteIntoFile is also available from winget thanks to @QuentiumYT

    Full Changelog: https://github.com/eltos/PasteIntoFile/compare/v5.3.2...v5.4.3

    GitHub release (by tag) GitHub release (by tag) GitHub release (by tag) GitHub release (by tag)

    📥 INSTALL🪙 DONATE❤️ SAY THANKS

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Paste Into File

    Contributors Translations Build status Latest release Total downloads

    About

    Are you tired of opening an image/text/office/archive application, paste what you just copied, hit save, select the folder manually and type the filename, just to realise your transparent GIF became a static JPEG with black background? Paste Into File helps you do all this in a single step, preserving transparency and animations.

    With Paste Into File you paste clipboard contents directly into files via file explorer context menu and/or keyboard shortcut, and likewise copy file contents to the clipboard without opening the file. It can also monitor the clipboard and automatically save or append content in a file/folder/zip as you copy things (batch processing).

    Note: On Windows 11, the context menu entries are located in the extended menu ("show more options"). Use Shift + right click to access it directly; or enable autostart and use keyboard shotcuts.

    Features

    Related projects

    This project started as a fork of sorge13248/PasteIntoFile, itself being a fork of EslaMx7/PasteIntoFile, both of which are no longer maintained. It is similar but more advanced than PasteEx (FOSS), Paste As File (trialware), PasteHere (unmaintained), Paste To File (trialware) and PowerToys Advanced Paste.

    This fork comes with many new features: autosave, batch mode, more formats, keyboard shortcuts, a new fluid GUI and new console options. The full changelog can be found on the release page. See the contributors page for details on collaborators.

    Installation

    Paste Into File is free

    📥 DOWNLOAD🪙 DONATE❤️ SAY THANKS🌐 TRANSLATE💻 CONTRIBUTE

    Tested on Windows 10 and 11. If you are running an older Windows version make sure the .NET Framework 4.8+ is installed. If the Microsoft Defender SmartScreen prompt appears read this.

    Usage

    When starting Paste Into File for the first time or after an update, the first launch wizard will guide through the configuration of context menu entry, hotkey, etc.

    In addition to the instructions given below, help is also available via GitHub discussions.

    Paste clipboard contents

    This is the main mode of Paste Into File which allows saving clipboard contents directly into files. To use this mode, run the program from the file explorer context menu, with the hotkey WIN+ALT+V (if enabled), from the tray (if enabled), from the start menu or via command line. If clipboard patching is enabled, the regular paste command and CTRL+V hotkey can also be used.

    The file explorer context menu is accessed with a right click on a folder or the file explorer background (for windows 11 it is in the extended context menu ("more options" or SHIFT + right click). The context menu of existing files allows to replace or append into existing files, preserving filename and file type without showing the dialog. In the case of replace, the old file is moved to the recycle bin and can be restored with the usual undo options of the file explorer (e.g. CTRL-Z).

    The append into file option allows to append data to existing files. This works only for supported file types (such as text or zip, not for images) and as long as the clipboard contains data compatible with the selected file type. If the file does not exist, it is created. This option is exspecially useful in combination with batch mode (see below).

    If autosave mode is enabled, the file to paste will directly be created and selected for renaming. Otherwise, a dialog will prompt for filename and type. By holding SHIFT when the program starts, the autosave mode setting can be temporarily inverted (show the dialog even though autosave is enabled, or skip the dialog even though autosave is disabled). When using the hotkey, use WIN+ALT+SHIFT+V accordingly. When running Paste Into File from the start menu or tray, the dialog will always be shown.

    The filename template can be edited from the UI or via command line (see below for a description of the available formats).

    A folder template can likewise be configured from the UI or via command line (see below). When holding CTRL while the program starts, the file will be saved to a subdirectory according to the specified template. The hotkey becomes WIN+ALT+CTRL+V accordingly1. The folder template also accepts absolute paths, in which case the file is saved to the absolute path specified. This can be useful to have a quick way to save the file to a specific folder, such as a static "Clipboard Archive" or "Screenshots" folder.

    The available file extensions depend on the formats available in the clipboard. For example, if you copy a range of cells from a spreadsheet, the data is available not only as text, but also in DIF, RTF, SLK and HTML formats and even as screenshot. Either select one of the suggested or enter a custom extension (which will be remembered). An appropriate format is then chosen automatically2 and a preview shown. When selecting * as extension or in autosave mode, the file extensions is determined automatically, i.e. the clipboard is saved as image, if available, or else as text. The format is determined by the last used extension for the respective filetype (which can also be set via command line).

    A special batch mode exists to monitor the clipboard and save it every time new contents are copied. If enabled, the filename is purely determined by the template and a new file is created for each copy (which supports a dedicated counter variable). In combination with "append into file", the data is collected in a single file instead (fixed filename).

    Copy file contents

    To copy the contents of a file to the clipboard, use the file explorer context menu, the hotkey WIN+ALT+C (if enabled) or the command line option. Currently, image and text files are supported. If the file format is not understood, an error message will be shown. For non-text files, the file path is copied as text in addition to the image contents and file.

    Filename template format

    The filename and/or subfolder template string may contain the following placeholders:

    • {0}: The current date and time, e.g. {0:yyyy-MM-dd HH-mm-ss}. In addition to the standard format specifiers, j for day-of-year and w for week-of-year are supported.
    • {1}: The save counter for batch mode. E.g. {1:000} for 3-digit zero padding. See format specifiers for details.
    • {2}: The clipboard text. E.g. {2:15} to limit it to 15 characters.

    Command Line

    Use help, help paste, help config etc. as argument to show available command line options, e.g.:

    > .\PasteIntoFile.exe help
    PasteIntoFile 5.3.0.0
    Copyright © PasteIntoFile GitHub contributors
    
      config     Change configuration (without saving clipboard)
      copy       Copy file contents to clipboard
      help       Display more information on a specific command.
      paste      (Default Verb) Paste clipboard contents into file
      tray       Open in tray and wait for hotkey Win + Alt + V
      version    Display version information.
      wizard     Open the first-launch wizard
    
    > .\PasteIntoFile.exe help paste
    PasteIntoFile 5.3.0.0
    Copyright © PasteIntoFile GitHub contributors
    
      --append           (Default: false) Append to file if it exists (and extension supports appending).
      -a, --autosave     Autosave file without prompt (true/false)
      -c, --clear        Clear clipboard after save (true/false)
      -d, --directory    Path of directory to save file into
      -f, --filename     Filename template with optional format variables such as
                         {0:yyyyMMdd HHmmSS} for current date and time
                         {1:000} for batch-mode save counter
                         May also contain a file extension and path fragment if used in paste mode.
      --help             Display this help screen.
      --overwrite        (Default: false) Overwrite existing file without prompt.
                         Requires --autosave=true. If append is also given, this only applies in case appending fails.
      --version          Display version information.
    

    Examples:

    • Add/remove the Paste Into File entry in the File Explorer context menu:
      PasteIntoFile config --register
      PasteIntoFile config --unregister
      
    • Start Paste Into File manually in system tray and react to hotkeys:
      PasteIntoFile tray
      
    • En-/disable autostart of Paste Into File in system tray on windows startup:
      PasteIntoFile config --enable-autostart
      PasteIntoFile config --disable-autostart
      
    • Configure the default filename template format (see format specifiers):
      PasteIntoFile config -f "{0:yyyy-MM-dd HH-mm-ss}"
      
    • Save clipboard contents in autosave mode to specific location:
      PasteIntoFile -d the/directory -f the_filename --autosave=true
      
    • Copy file contents to clipboard:
      PasteIntoFile copy path_to/the_file
      

    Code signing policy

    Free code signing provided by SignPath.io, certificate by SignPath Foundation

    Privacy Policy

    See PRIVACY file

    License

    See LICENSE file

    Footnotes

    1. Note that PasteIntoFile will not work if other applications use the same hotkey. For example, WIN+ALT+CTRL+V is also used by Microsoft PowerToys for their "Paste as plain text" feature by default. If you want to use this hotkey for PasteIntoFile, you first have to disable or change it in the other application and then restart PasteIntoFile. ↩

    2. To force saving plain text data to a file with a special extension, prepend a dot to the file extension (the actual filename will still have only a single dot). For example, when copying syntax highlighted HTML code snippets from a browser, using html will cause the html-formatted text to be saved, while using .html will save the plain text. ↩