Shell Commands
Jeanne A. E. DeVoto
jeanne at runrev.com
Thu Feb 14 16:03:01 EST 2002
At 10:10 AM -0800 2/14/2002, Roger.E.Eller at sealedair.com 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
>script?
>
>on mouseUp
> set the shellCommand to "C:/WINNT/SYSTEM32/command.com"
> 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 runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!
More information about the use-livecode
mailing list