I can't get the wildcards to work...
$cmdtxt = "SELECT System.ItemFolderPathDisplay, System.ItemName, System.ItemTypeText, System.Size FROM SystemIndex WHERE Contains(System.filename,'.xls?')"

I have replaced the ? with each of these(* _ %) and it still only returns just the xls files, not including the xlsx... (unless I explicitly put xlsx)
_________________________
How to ask questions the smart way <-----------> Before you ask