title: Command to automatically input password for pscp
body: <p>I want to copy some file to a remote Linux system from my Windows PC using <code>pscp</code> (from putty). I wrote a small script that call the pscp commands in this way:</p>
  
  <pre><code>"C:\Users\hp\Desktop\pscp.exe" -scp C:\Users\hp\Desktop\scripts\* root@192.168.1.177:/root/scripts
  "C:\Users\hp\Desktop\pscp.exe" -scp C:\Users\hp\Desktop\scripts2\* root@192.168.1.177:/root/scripts2 
  
  pause
  </code></pre>
  
  <p>But when I launch this bat script, I'm asked to input the password, so I input the password manually.</p>
  
  <p>Is there a way to input the password automatically through the batch file?</p>