Hi Quaritexa, there is a moi.filesystem.getFiles() for getting a list of all files in a folder, but nothing currently for getting all directories. I will see about adding that in for the next v4 beta.
ActiveXObject is not supported on v4 anymore. There is an example here on how to iterate through the FileSystemObject Folders collection (which SubFolders returns) here: https://support.microsoft.com/en-us/help/229693/how-to-use-jscript-or-javascript-to-traverse-through-a-collection . I'm not sure if that uses something special from Microsoft's JScript script engine though. It may not work in MoI since starting with MoI v3 it uses the WebKit JavaScriptCore script engine instead of the Microsoft JScript script engine.
- Michael
|