> Simple Loop: - Read from program output - interpret the output and - write to program input. That's all the "general" advice we can give.
Yea sure I do this and I have no problem with simple CMD programs. Problem is programs like MySQL that can be run from one line command and need reading and writing. When you run this command : '"C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysql.exe" -u root -p'; You will get nothing in the output, it is locked and you even cant call NumByteAvailable but interesting is if you remove -WG param you can see Enter password: it will write in CMD that opens with program it self from Lazarus. Regards, Ara -- http://www.fastmail.com - Same, same, but different...
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
