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.
- Paste clipboard images directly as PNG files.
- Paste clipboard text as
.txtfiles. - Installs/uninstalls context menu entries without requiring admin rights.
- Simple installer script for easy setup.
-
Install dependencies:
pip install -r requirements.txt
-
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" -
Uninstall context menu entry:
python installer.py --remove
- 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
.txtfile.
Pasted files are named using the following pattern:
- For images:
clipboard_YYYYMMDD_HHMMSS.png - For text:
clipboard_YYYYMMDD_HHMMSS.txt
installer.py– Installs/uninstalls the context menu entry.paste_as_file.py– Handles clipboard data and saves it as a file.