Windows Dos window doesn't work?
Alex Tweedly
alex at tweedly.net
Wed Dec 15 18:55:18 EST 2004
At 17:18 15/12/2004 -0500, Glen Bojsza wrote:
>Well, I'm still trying to see if anyone else has this problem with
>Windows XP and Rev 2.5
>
>on mouseup
>open process "cmd" for read # it opens a cmd window but fails
>to return a prompt
>end mouseup
>
>Sorry for pushing this but I'm stuck on the road without another
>machine to test with.
Don't have XP, tried it on Win2000
I see the same symptom - but I think that's what it's supposed to do. When you
open process ... for read
the output from that process is redirected to your stack (and available via
"read from process"). In the case of "cmd", the prompt is part of its
output. I tried the following script and received the characters that
would normally be the prompt.
on mouseUp
open process "cmd" for read # it opens a cmd window but fails to return
a prompt
put the result
read from process "cmd" for 20 chars
put "<<" & it & ">>" & cr after msg
read from process "cmd" for 20 chars
put "<<" & it & ">>" & cr after msg
read from process "cmd" for 20 chars
put "<<" & it & ">>" & cr after msg
end mouseUp
I'm afraid I don't remember the start of the discussion, so I'm not sure
what you are trying to do - i.e. I don't know if this helps, or just makes
it worse :-)
I'll go look back in the archive - but wanted to get this off to you as
soon as possible in case it does help.
-- Alex.
More information about the use-livecode
mailing list