title: Batch file for PuTTY/PSFTP file transfer automation
body: <p>I have a batch file for moving file from my local PC to server through SFTP. I have PuTTY installed in my system and the batch file code follows.</p>
  
  <pre><code>cd C:\Program Files (x86)\PuTTY
  psftp
  open &lt;IP&gt;
  &lt;user&gt;
  &lt;PW&gt;
  cd /home/irisuser/iris/integration/dls_dlsblr_dlschnn_in_msg/in
  lcd d:\
  put log.sh
  bye
  </code></pre>
  
  <p>The above code perfectly works when I type it in command prompt. But when I double click the <code>.bat</code> file and run it, it's not running and asking for username and password to be entered. My aim was to automate the whole thing and I need to run it by simply clicking the <code>.bat</code> file. But am not able to achieve it. Any ideas or snippets will help me.</p>