2012/1/20 Henry Vermaak <henry.verm...@gmail.com> > > There's already something in TProcess that should work. Set > TProcess.StartupOptions to suoUseShowWindow and set TProcess.ShowWindow to > swoHIDE (not tested). > > Thank you to all, I converted my program to TProcess and it works very well :)
... try AProcess := TProcess.Create(nil); AProcess.CommandLine := 'command_prompt_command.exe -with -parameters'; AProcess.Options := AProcess.Options + [poWaitOnExit, poNoConsole]; AProcess.Execute; AProcess.Free; finally end; ... Best Regards, Kjow
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus