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
wiki:windows:batch:copy_to_clipboard [2018/09/17 10:29] – created mattwiki:windows:batch:copy_to_clipboard [2021/04/17 19:32] (current) 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 =====
-<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 + 
-</code>+  echo|set/p=TextToBeCopied|clip 
 + 
 + 
 +This one is for a formatted block of text stored in a separate text file. Handy for pre-formatted messages and documentation frameworks. 
 + 
 +  type text.txt | clip 
 + 
  
wiki/windows/batch/copy_to_clipboard.1537194559.txt.gz · Last modified: 2018/09/17 10:29 by matt