title: Overwrite files of ftp server by batch
body: <p>I have this script to send files to my ftp:</p>
  
  <pre><code>@echo off
  @setlocal enableextensions
  @cd /d "%~dp0"
  color 0a
  mode 34,12
  title Enviar Vendas Eco
  echo.
  echo.
  echo.
  echo.
  echo            Sending ...
  echo.
  echo.
  echo            Wait ...
  
  ( echo open ftp.xxxxxxxxxxxxx.com
  echo xxxxxxx
  echo xxxxxx
  echo ascii
  echo prompt
  echo cd "place1"
  echo cd "place2"
  echo lcd "%userprofile%\Desktop\test"
  echo mput *.txt -overwrite
  echo bye 
  )&gt; %temp%\ftpsend.dat
  ftp -s:%temp%/ftpsend.dat &gt;nul 2&gt;nul
  del /f /s /q %temp%\ftpsend.dat &gt;nul 2&gt;nul
  exit
  </code></pre>
  
  <p>By default, the script would must overwrite the files if already exists on <code>.ftp</code>. But it isn't happening.</p>
  
  <p>What is wrong on my script?</p>
  
  <hr>
  
  <p>When i run appears the file was suceffully transfered, but it didn't replace the file that already exists on ftp.</p>
  
  <p>Look the image:</p>
  
  <p><a href="https://i.stack.imgur.com/9tbQv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9tbQv.png" alt="enter image description here"></a></p>