title: Can't transfer files using FTP script and batch on Windows
body: <p>I have a folder with PDF files locally on hard disk and I want to upload files from this folder to an FTP server.</p>
  
  <p>So I created a batch file that should upload PDF files to the FTP server. Everything seems to work fine and the console window displays <code>File successfully transferred</code>, but actually no file really uploaded.</p>
  
  <p>The FTP script content:</p>
  
  <pre><code>open
  000.000.000.000  -- not the real ftp server ip lol 
  bla@nirlatpro.com
  PASSWORD
  mput c:\Batch\*.pdf
  quit
  </code></pre>
  
  <p>Command window with output on running this script:</p>
  
  <p><a href="https://i.stack.imgur.com/ZUkcf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZUkcf.png" alt="Lines output in console window on running the script"></a></p>
  
  <p>It looks like it works, but no file is actually uploaded.</p>
  
  <p>What is even more strange is if I connect to FTP using GUI application and drag the files, it does work and all the files are uploaded to the server.</p>
  
  <p>summary:
  - It's works fine if i'm using windows explore and dragg the files.
  - It's not uploading the files if i'm using cmd commands or batch script with ftp file, even if the console window displays <code>'File successfully transferred'</code></p>