title: Where is error in ftp-bat script?
body: <p>I scripting automatic ftp script.</p>
  
  <p>And throws error:</p>
  
  <pre><code>The syntax of the command is incorrect.
  
  User (domain.lt:(none)):
  
  Error reading password.
  
  Login incorrect.
  Login failed.
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>@ECHO OFF
  mkdir C:/dtmp
  ECHO USER username &gt; script.ftp
  ECHO PASSWORD password &gt; script.ftp
  ECHO cd Directories-files &gt; script.ftp
  ECHO lcd C:/dtmp &gt; script.ftp
  ECHO binary &gt; script.ftp
  ECHO prompt n &gt; script.ftp
  ECHO get main.py &gt; script.ftp
  :: Use the temporary script for unattended FTP
  :: Note: depending on your OS version you may have to add a '-n' switch
  FTP -v -s:script.ftp domain.lt
  :: For the paranoid: overwrite the temporary file before deleting it
  TYPE NUL &gt;script.ftp
  DEL script.ftp
  GOTO End
  :End
  </code></pre>