spacer
cornerspacercorner
Reply
Occasional Contributor
Paul Heffernan
Posts: 3
Registered: 11-16-2010
0 Kudos

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

Employee
Ethan Beisher
Posts: 378
Registered: 05-10-2010
0 Kudos

Re: Read directory contents

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.

 

 


 

Ethan Beisher
Solutions Engineer
Business Process Solutions
Occasional Contributor
Paul Heffernan
Posts: 3
Registered: 11-16-2010
0 Kudos

Re: Read directory contents

This worked out well, thank you for the help :smileyhappy:

line spacer line
spacerFollow Metastorm on:
spacer Twitter YouTube Blog iTunes LinkedIn Metastorm Community Central, MC2
spacer Copyright © 2011 OpenText Corporation. All Rights Reserved.spacer About Metastormspacer Privacyspacer Legalspacer Site Mapspacer RSSspacer Contact Us
Microsoft Gold Certified Partner
Powered by Windows Azure
line spacer line