question catching system message

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

Is there a way to catch the reply of system() under Win32?
The following is incorrect sytax but that's what I mean:
sequence sx
sx=system("dir *.txt",2)


Currently the only way I can do it is this
sequence sx
system("dir *.txt > temp.txt",2)
sx=read_file("temp.txt")


Any tips?

Thanks,

Salix

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

Search



Quick Links

User menu

Not signed in.

Misc Menu