Read directory contents

Is there a way to read the contents of a directory that is not part of a registry? For example on the ORC. server, If I wanted to read the contents of the "C:\TEMP\unzipped" folder and load the file names into an object array, how would I be able to accomplish this with xmscript?

 

Thanks,

 

Paul

Tagged:

Comments

  • Ethan Beisher
    Ethan Beisher E Community Moderator

    There are a few ways. One is to call out to the system and make a directory call using the XMUtilities::systemCall().

     

    Alternatively, you can build a local registry within XMScript. See the attached example.

     

     

     

  • This worked out well, thank you for the help :)