[Lazarus] Problems using RunCommandIndir with Lazarus, 2.0.0

Carlos Eduardo S. M. carlos70esm at gmail.com
Sat Mar 2 22:52:49 CET 2019


On Sat, 02 Mar 2019 09:56:07 +0100, Bo Berglund via lazarus 
<lazarus at lists.lazarus-ide.org> wrote:

> Now for another RunCommandInDir problem:
> ----------------------------------------
> When I run the command to extract the information a black command
> window is briefly flashed on screen and then disappears.
>
> Is there some way to make this window minimized or invisible while it
> runs?
>
> The available options for RunCommandInDir seem to be:
>
> type TProcessOptions = set of (
>    poRunSuspended,	//Start the process in suspended state.
>    poWaitOnExit,	//Wait for the process to terminate before returning.
>    poUsePipes,	//Use pipes to redirect standard input and output.
>    poStderrToOutPut,	//Redirect standard error to the standard output.
>    poNoConsole,	//Do not allow access to the console window for the
> process (Win32 only)
>    poNewConsole,	//Start a new console window for the process (Win32
> only)
>    poDefaultErrorMode,	//Use default error handling.
>    poNewProcessGroup,	//Start the process in a new process group
> (Win32 only)
>    poDebugProcess,	//Allow debugging of the process (Win32 only)
>    poDebugOnlyThisProcess	//Do not follow processes started by this
> process (Win32 only)
> );
>
> It seems like poNoConsole could be what I am after, but it is Win32
> only...
>
> No option to hide the console?


Why not to use TProcess?

Carlos Eduardo S. Matuzaki
Curitiba, Paraná (Paraná), Brazil


---
Este email foi escaneado pelo Avast antivĂ­rus.
https://www.avast.com/antivirus



More information about the lazarus mailing list