Hello,
I don't know who the person was that was teaching the class in Michigan, but here is an example of how to use the DirLstWrite command in DIAdem:
Call DirLstWrite("C:\Datafiles","Test*.dat","filename","test.lst",0)
Here is a description of the different items that this command is made off:
Call - VBS function, calls a DIAdem function
DirLstWrite - Command for storing file names in an ASCII file
"C:\Datafiles" - Directory in which to search for the data files that need to be put into the LST file
"Test*.dat" - Parameter to describe the file name(s) that need to be put into the LST file
"filename" - Parameter that determines how the results will be sorted in the LST file (by file name, by file leng
th, by extension, by date/time of creation)
"test.lst" - name of the LST file
0 - Parameter that determines if the files found with the DirLstWrite function will be added to an exisitng list file or put into a new file (if a file of the same name already exists, it will be overwritten)
The result of the above example will be this:
Test1.dat
Test12.dat
TestA.dat
TestC.dat
I hope this helps. Please let me know if you need additional information.
Otmar
Otmar D. Foehner