Re: question catching system message
- Posted by don cole <doncole at p?cbell?net> Aug 11, 2007
- 506 views
Salix wrote: > > Is there a way to catch the reply of system() under Win32? > The following is incorrect sytax but that's what I mean: > }}} <eucode> > sequence sx > sx=system("dir *.txt",2) > </eucode> {{{ > > Currently the only way I can do it is this > }}} <eucode> > sequence sx > system("dir *.txt > temp.txt",2) > sx=read_file("temp.txt") > </eucode> {{{ > > Any tips? > > Thanks, > > Salix Hello Salix, Try system_exec(). Read the docs on it. Don Cole