title: mathematica start front end and eval notebook from command line
body: <p>Is there a way to start up a mathematica front end  (GUI) from a (Windows) command prompt  and have it eval a notebook without further user action?</p>
  
  <p>even though mathematica.exe takes the -run and -initfile options they dont work the same
  as they do with math.exe.  (-run ''&#60;&#60;file.m'' wants to open a file named ''&#60;&#60;file.m'' for example)</p>
  
  <hr>
  
  <p>Thanks. The first answer looks promising, however I get 
  FrontEndObject::notavail
  A front end is not available</p>
  
  <p>(per docs it is "UseFrontEnd" by the way.)</p>
  
  <p>Perhaps a path issue, however even after setting $FrontEndLaunchCommand no joy..</p>
  
  <p>Re: Initialization Cell -- that simple answer would seem to do exactly what I need excepting for the "do you want to run initialization.." nag box. If there is an option somplace to automatically start a kernel and run initialization cells that would be really useful to know.</p>
  
  <p>I'm running 6.0 by the way.</p>