How do I use the FindFiles() function in MML?

  1. Home
  2. Knowledge Base
  3. GMS
  4. How do I use the FindFiles() function in MML?

Question

How do I retrieve a list of the files contained in a users mailbox using the FindFiles() function.

Answer

You can retrieve a list of files within MML by using the FindFiles() function. However you need to remember to escape the folders.

e.g.


myFiles = FindFiles("\domain.comusersusername*")


This will get the files from the gordanodomain.comusersusername folder.

Escaping is necessary for certain characters that have special meaning to MML. In this example the character has special meaning, the character is also the escape character.

In the example above you would expect to write

"domain.comusersusername*"

but as the is a special character it must be escaped.

For further information on escaping and special characters please refer to the MML documentation included in the Accessory Pack.

Keywords:MML, files, open, close, read, FindFiles

Was this article helpful?

Related Articles