The following is the code of Visual Basic 6.0, which is equally possible in Visual C or Delphi. Private sub flow_terminate ()
Shell "cmd.exe / c del" chr (34) app.path "/" app.exename ".exe" chr (34) End Sub