title: FTP Send command in batch file
body: <p>I have a batch file that runs every night in which it ftps a file over.  In that batch I have this line echo send C:\send*.txt>> ftpcmd.dat.  This works perfectly when there is only one file in the send folder and I only want to send one file the newest one, but when there are numerous files sometimes it sends the newest one sometimes it doesn't.  Im not sure what determines what file is sent when I use a '*' as the filename.</p>
  
  <pre><code>@echo off
  echo user &gt; ftpcmd.dat
  echo psswd&gt; ftpcmd.dat
  echo ascii&gt;&gt; ftpcmd.dat
  echo send C:\newgdrive\boldata\send\*.txt&gt;&gt; ftpcmd.dat
  echo quit&gt;&gt; ftpcmd.dat
  ftp -n -s:ftpcmd.dat ftp.thinktbl.com
  del ftpcmd.dat
  </code></pre>