Shell command syntax in Windows

Bill Vlahos bvlahos at mac.com
Tue Jun 24 04:45:52 CEST 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