I'm working on a script that is grabbing the UNC path, the date last
modified, and the creator owner for all folders and files in a specific
directory and feeding this data into a disconnected recordset. Pretty
much using the code as given in the Windows 2000 scripting guide to
populate the recordset and do a sort. The goal is to sort by
creator/owner and then feed each unique user ID into an array to be
used later in the script. Since a creator owner can appear in the
Owner column for each file they own, I need to have a way to have that
ID only appear in the array once. SQL has a "distinct" clause which
would do the trick, but I have no idea how to do this in a disconnected
recordset. Any samples I've seen in the MSDN are for VB and I'm not
sure how to translate those into script. My guess is that SQL command
would look something like "SELECT DISTINCT [column] FROM [table]".
However, I don't know which method/property to use to create the SQL
command, and a disconnected recordset doesn't seem to have a table
name...