Sorry for the delay in replying; busy week.

adding dir(,1)
...
dir("",1)

worked!!

I will probably settle on the UDF option above (or Powershell), but another option I figured out was pipe the output from the DOS dir command to a text file and then use open() to read the contents of the file. Add in some instr() logic and a call to deltree and ! It is a long way around but is functional.

... appreciate the tip for the syntax for using the 1 index. Proper use of that isn't documented very well. Now I know!

Thanks!