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 _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution