Getting Mutiple files

Phil Davis revdev at pdslabs.net
Wed Jun 17 21:57:10 EDT 2009


Try this:

function filesInFolder pTargetPath
   if the platform = "Win32" then
      replace "/" with "\" in pTargetPath
      return shell("dir" && quote & pTargetPath & quote && "/B")
   else return shell("ls" && quote & pTargetPath & quote)
end filesInFolder
 

However, you can always do it the way others have suggested without 
causing any problems.


Hershel Fisch wrote:
> Hi, how can I get a list of files in a folder (without changing the
> defaultFolder)?
> Thanks, Hershel
>   

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the use-livecode mailing list