Re: question catching system message

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu