title: A batch file to download and delete files from a server
body: <p>How can I write a MS dos ftp batch file to:</p>
  <ol>
  <li>download files from the server to my local pc</li>
  <li>remove these files from the server after download</li>
  </ol>
  <p><strong>Edit:</strong></p>
  <p>So far I have...</p>
  <p>Batch file:</p>
  <blockquote>
  <p>ftp.exe -s:ftp.txt</p>
  </blockquote>
  <p>FTP.txt:</p>
  <blockquote>
  <p>open domain.com</p>
  <p>usernamehere</p>
  <p>passwordhere</p>
  <p>cd /httpdocs/store/files</p>
  <p>need get, list and delete commands here??</p>
  <p>quit</p>
  </blockquote>