title: DOS scripting - for MSFTP server
body: <p>I am starting an FTP session using:</p>
  
  <blockquote>
    <p>"C:\Program Files\FTP
    Server\msftpsrvr.exe" -start</p>
  </blockquote>
  
  <p>Now I want it to wait until it has find a file with a specified string.</p>
  
  <p>Details:
  I am using Mini core ftp on my server and Winscp on my client.
  The client's time schedule keeps changing. I follow the following steps for automation:</p>
  
  <p>On server</p>
  
  <ol>
  <li><code>msftpsrvr.exe -start</code></li>
  </ol>
  
  <p>On client:</p>
  
  <ol>
  <li><p><code>cd "C:\Program Files\WinSCP"</code></p></li>
  <li><p><code>winscp.exe /console /script=script</code> to get backup and put file with status</p></li>
  </ol>
  
  <p>No the server should read the status after copy is finished and then stop the ftp server.</p>
  
  <p>How can I tell the server to pause untill that file is updated with "done" string?</p>