Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: call/output to string bug in Windows

From: greggirwin:mindspring at: 28-Feb-2003 12:51

Hi Gabriele, TB>> But how to use this to do a shell command, WITH output to a string! ?? GS> I think there's no easy way; maybe on NT you could send the output GS> to a pipe and get it back on REBOL; in general you could send the GS> output to a temporary file and read it back. I don't know if this GS> is easy to do with ShellExecute, surely there has to be a way to GS> do it. I don't know if there's an easy way as I haven't played with it, but the harder way would be to use CreateProcess, CreatePipe, and WaitFor[Single?]Object and do all the work of reading pipes yourself. Should be possible, but maybe more than a few lines of code. -- Gregg