Shell Commands

Jeanne A. E. DeVoto jeanne at
Thu Feb 14 16:03:01 EST 2002

At 10:10 AM -0800 2/14/2002, Roger.E.Eller at wrote:
>I was trying to figure out how to pass commands to the OS on the OS level.
>Shell looks promising, but I cannot get it to work. What is wrong with this
>on mouseUp
>  set the shellCommand to "C:/WINNT/SYSTEM32/"
>  shell("dir C:\")
>  answer the result
>end mouseUp

The problem is that shell is a function whose return value is the returned
data - not a command. So you need

  answer shell("dir C:/")

Jeanne A. E. DeVoto ~ jeanne at
Runtime Revolution Limited - Power to the Developer!

More information about the Use-livecode mailing list