title: List of files located in text file to be send as parameter to WinSCP in script mode
body: <p>I've to create solution that is based on WinSCP and windows batch script. Below are tasks the script has to do:</p>
  
  <ol>
  <li>Save list of files from remote directory, to file located on machine where batch script is run.</li>
  <li>Run WinSCP in command mode (<code>/command</code>) using WinSCP script passed as parameter (<code>/script=name_of_script_file.txt</code>) and get files (<code>get</code> command) from previously generated list. </li>
  </ol>
  
  <p>The most important is to get file list, save it and pass names of files located in created file to WinSCP to get them. </p>
  
  <p>How to implement this? </p>