title: batch file to search for file and list the directory
body: <p>I am making a batch file that automatically starts a program, and if the program is not in the original location, it pops up a window, and asks the user to search for the file themselves.  this is done with a batch to exe program, and it even includes some advanced commands.   the one I used was:</p>
  
  <pre><code>rem browsefolder
  </code></pre>
  
  <p>you can get the compiler here: <a href="http://www.battoexeconverter.com/" rel="nofollow">http://www.battoexeconverter.com/</a>  anyway, if the user can't find the file, I would like to have an autosearch function available.  It would have to chech all directories, and might take a while.  I would also need the command to store the location of the file, once it has been found, as a variable.  I can't just automatically start it, because I need to kill other processes first, and It would just be alot better to have it as a variable.  I have no idea if this is possible, so I'm sorry if this is an outragious request.  Once again, I only need the search function.  The rest I already have completed.</p>