title: How to start a *.batch file in Delphi 7
body: <p>When I run the <code>L.bat</code> it launches any application successfully.</p>
  
  <p><code>L.bat</code> code:</p>
  
  <pre><code>@ECHO OFF
  start notepad.exe
  exit
  </code></pre>
  
  <p>When I use my application, designed and compiled in Delphi 7 the <code>L.bat</code> isn't running.</p>
  
  <p>Code inside my app:</p>
  
  <pre><code>procedure TFMain.ImgBtn1Click( Sender: TObject );
  begin
    Dir := GetCurrentDir ;
    RunApp( Dir + 'L.bat' );
    FMain.Close;
  end;
  </code></pre>