title: how to write a batch/script to rename ftp file by a list of choices
body: <p>i'm a completely new to this sort of thing, and have no idea where to start.</p>
  
  <p>i'm trying to write a win 7 script for my boss, where the following happens;</p>
  
  <ol>
  <li>display a list of choices based on directories within a ftp directory</li>
  <li>when he selects one it will cd to that directory</li>
  <li>then display another list of choices based on files ending in .htm</li>
  <li>when he selects one it renames the first 8 characters with today's date yyyymmdd</li>
  </ol>
  
  <p>all .htm files have a yyyymmdd format in the begining of the file name</p>
  
  <p>what language should i use? any ideas where to start something like this?</p>
  
  <p>edit: this is what i have so far</p>
  
  <pre><code>    echo off
      cls
      echo user me@company.com&gt; ftpcmd.dat
      echo password&gt;&gt; ftpcmd.dat
      echo mls . 1.tmp&gt;&gt; ftpcmd.dat
      echo y &gt;&gt; ftpcmd.dat
      echo quit&gt;&gt; ftpcmd.dat
      ftp -n -s:ftpcmd.dat ftp.company.com
      del ftpcmd.dat
  
      type mls.tmp | more +2 &gt; trim.tmp
      findstr /N "^" trim.tmp &gt; dirs.tmp
  
      ::code need to make choices from dirs.tmp
      ::value of selected to be %dir%
  
      cls
      echo user me@company.com&gt; ftpcmd.dat
      echo password&gt;&gt; ftpcmd.dat
      echo cd %dir%&gt;&gt; ftpcmd.dat
      echo mls . mls.tmp&gt;&gt; ftpcmd.dat
      echo y &gt;&gt; ftpcmd.dat
      echo quit&gt;&gt; ftpcmd.dat
      ftp -n -s:ftpcmd.dat ftp.company.com
      del ftpcmd.dat
  
      findstr ".htm" mls.tmp &gt; trim.tmp
      findstr /N "^" trim.tmp &gt; files.tmp
  
      ::code need to make choices from files.tmp
      ::value of selected to be %sel%
  
      set new=%date:~10,4%%date:~4,2%%date:~7,2%%sel:~9%
  
      cls
      echo user me@company.com&gt; ftpcmd.dat
      echo password&gt;&gt; ftpcmd.dat
      echo cd %dir%&gt;&gt; ftpcmd.dat
      echo rename %sel% %new%&gt;&gt; ftpcmd.dat
      echo quit&gt;&gt; ftpcmd.dat
      ftp -n -s:ftpcmd.dat ftp.company.com
      del ftpcmd.dat
      del *.tmp
  </code></pre>
  
  <p>i firgured once i can fill in the missing pieces, i can loop it to cut down on the code.</p>