User Tools

Site Tools


wiki:windows:batch:copy_to_clipboard

This is an old revision of the document!


Copy Text to Clipboard

Here are a couple batch files that can streamline frequently used strings that don't quite justify an AutoHotKey command.

Batch File Code

This works for a predefined, on line string. Like a not so important password or address that is used frequently.

echo|set/p=TextToBeCopied|clip

This one is for a formatted block of text stored in a separate text file.

type text.txt | clip

Handy for pre-formatted messages and documentation frameworks.

wiki/windows/batch/copy_to_clipboard.1537197860.txt.gz · Last modified: 2018/09/17 11:24 by matt