Shell command syntax in Windows

Bill Vlahos bvlahos at
Mon Jun 23 22:45:52 EDT 2014

I’m trying to run a shell command on Windows and the following code gives an error on the “put the wheel of “dir” into field “one”.

The goal of the script below is to get a directory listing in the Programs folder.

Setup: A field “one” and a button where this script is in.

on mouseUp
   set the shellCommand to “C:\ProgramData\Microsoft\Start Menu\Programs”
   put shell (“dir”) into field “one”
end mouseUp

Bill Vlahos

More information about the Use-livecode mailing list