I have a cmd running 'via' a pipe, created like this:
console:=TProcess.Create(Nil);
console.Commandline:='cmd.exe';
console.Options:=[poUsePipes,poNoConsole,poStderrToOutPut];
console.CurrentDirectory:=apppath+'data\';
console.ShowWindow:=swoHIDE;
console.execute;
Now, my problem is that I'm using cmd to send commands to android device through adb (which is another command line tool). While cmd window itself is hidden, each adb call creates new console window which shortly after closes automatically. How do I hide all those windows altogether?