title: Copy text to clipboard using batch script
body: <p>I would want to copy a text to the clipboard using batch script so I don't have to open a text file to select all text and copy. I tried this code:</p>
  
  <pre><code>echo | set /p= hello &amp; echo.world |clip
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>world
  </code></pre>
  
  <p>Expected clip (desired)</p>
  
  <pre><code>hello
  world
  </code></pre>
  
  <p>but it only clipped:</p>
  
  <pre><code>world
  </code></pre>
  
  <p>What are options so I can copy and paste multiple line text or paragraph using batch file?
  Thanks! </p>