User Tools

Site Tools


wiki:windows:batch:copy_to_clipboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
wiki:windows:batch:copy_to_clipboard [2018/09/17 10:29] – created mattwiki:windows:batch:copy_to_clipboard [2018/09/17 11:24] matt
Line 1: Line 1:
 ====== Copy Text to Clipboard ====== ====== Copy Text to Clipboard ======
-This is simple little command to copy a predefined sting of text to the clipboard by running the batch file. If there is a message or password you reference often enough to leave sitting in a handy text file, this is a more streamlined solution.+Here are couple batch files that can streamline frequently used strings that don't quite justify an AutoHotKey command.
 ===== Batch File Code ===== ===== Batch File Code =====
 +This works for a predefined, on line string. Like a not so important password or address that is used frequently.
 <code> <code>
 echo|set/p=TextToBeCopied|clip echo|set/p=TextToBeCopied|clip
 </code> </code>
 +
 +This one is for a formatted block of text stored in a separate text file.
 +<code>
 +type text.txt | clip
 +</code>
 +Handy for pre-formatted messages and documentation frameworks.
  
wiki/windows/batch/copy_to_clipboard.txt · Last modified: 2021/04/17 19:32 by matt