File Scanner: List directory's and files, no subdirectories
I'd like to add some directory listing into inventory data for use with collections.
For the path "%ALLUSERSPROFILE%\Desktop\" (and later "%SystemDrive%\")
I'd like a single level listing of files and directories.
If it contains one shortcut, one text file and one directory I'd like the properties (Name, Dates, etc) of each in inventory. Almost like a old fashion DIR listing.
Using the File Scanner path of: "%ALLUSERSPROFILE%\Desktop\" and a file filter of "*" and not including subdirectories, I can get the files on the desktop but not the directories. If include subdirectories I get the contents of the directories found which include hundreds of files I did not want listed.
I'm stuck. Unless an oversight and we need a "Directory Scanner", I'm sure the magic is in the file filter syntax. I've tried. "*\" and leaving it blank. Can you help please?
What file filter(s) in the file scanner will allow me to get a single level listing of files and directories from a specified location?
Matt
Comments
Hi Matt,
Currently there is not a directory scanner only a file scanner.
For a directory to show up, the file that is scanned for must be in the directory.
Any directory the does not contain the file that is being scanned for will be ignored.
Lex