Traversing through directory listing


Anyone know how to read a directory listing within AX? I need to process files in a directory and therefore need to know each file is in that directory so I can automatically read them into AX via a batch idea.

Any ideas are much appreciated!

Thanks in advanced…

Use classes from System.IO namespace, e.g. Directory or DirectoryInfo (see MSND documentation for details).

One of several possibilities is to call System.IO.Directory::GetFiles(directoryPath);