Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Paste As File

Paste As File is a Windows utility that adds a context menu entry to Explorer, allowing you to quickly paste clipboard contents (images or text) as a new file in any folder. Images are saved as PNG files, and text is saved as UTF-8 .txt files.

image

Features

  • Paste clipboard images directly as PNG files.
  • Paste clipboard text as .txt files.
  • Installs/uninstalls context menu entries without requiring admin rights.
  • Simple installer script for easy setup.

Requirements

Installation

  1. Install dependencies:

    pip install -r requirements.txt
  2. Install context menu entry:

    python installer.py --install

    Optionally, specify a custom script location:

    python installer.py --install --script "path\to\paste_as_file.py"
  3. Uninstall context menu entry:

    python installer.py --remove

Usage

  • Right-click in any folder or on a folder background in Windows Explorer.
  • Select Paste As File from the context menu.
  • If the clipboard contains an image, it will be saved as a PNG file.
  • If the clipboard contains text, it will be saved as a .txt file.

File Naming

Pasted files are named using the following pattern:

  • For images: clipboard_YYYYMMDD_HHMMSS.png
  • For text: clipboard_YYYYMMDD_HHMMSS.txt

Files

  • installer.py – Installs/uninstalls the context menu entry.
  • paste_as_file.py – Handles clipboard data and saves it as a file.

About

A Windows utility that adds a context menu entry to Explorer, allowing you to quickly paste clipboard images or text as new files (PNG or TXT) in any folder.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages