title: WinSCP command-line passive mode
body: <p>I am calling WinSCP via command line but I can't figure out how to set passive mode properly to the script.</p>
  
  <p>Here is the script now:</p>
  
  <pre><code> option batch on
   option confirm off
  
   open ftp://user_and_pass_details:21
   cd /out/
  
   option transfer binary
   put C:\afile.text
  
   close
   exit
  </code></pre>