If I use poNoConsole option, my file does not execute
code below:
RunProgram := TProcess.Create(nil);
RunProgram.options := RunProgram.options+[poNoConsole]; <-- if I comment this line, my code works.
RunProgram.options := RunProgram.options+[poWaitOnExit];
RunProgram.WaitOnExit;
RunProgram.Executable := 'jpg.bat';
RunProgram.Parameters.add(filename);
RunProgram.Execute;
Thanks is advance
Fausto