I have a directory structure that looks like the one below. I need to remove all the log files in the \WRC* directory, but I can't touch any *.log files in the parent DIR's. I have found the DIRPlus() UDF, and can successfully remove all *.log files. But I don't know what is in the root directory's
Sructure.
X:\Ilovetacos\stats\WRC87635887\*.log
X:\Ilikepizza\stats\WRC88754999\*.log
X:\NoVinegar4me\stats\WRC9875498\*.log
X:\makesmewannawagmytail\stats\WRC85489227\*.log
Working Code, but removes *.log from all the entire X: Drive, nut just under the \stats\WRC*\ folders
Code:
$files = dirplus("X:\","/s /a-d /m dir|.log")
I have tried both of these, and countless other variations without success. Can anyone help me out?
Code:
$files = Dirplus("X:\*\stats\*","/s /a-d /m dir|.log")
Code:
$files = dirplus("X:\","/s /a-d /m dir|'*\stats\*\'+'*.log'")
_________________________
-sphilip