Systematically killing ASP.NET's red-headed stepchild, the aspnet_client folder.
For those of you who don't know the "pleasure", upon installing .NET on your server (we had to, a 3rd party app we need uses it), Microsoft sees fit to propagate a "aspnet_client" folder into the root of every site on IIS as well as randomly through each site's subdirectories. Truly, if I find the person responsible for this imbecile-ry, the b*tch-slapping will be pride obliterating.
But that aside, I have created a scheduled task to find all instances of this folder for a directory and below (the web root) and to remove it. Well, the problem is that doing a <cfdirectory> listing, even when just specifying "dir" for type and "aspnet_client" for the filter, ColdFusion takes over 30 seconds and times out before it can get a complete listing of where these folders exist.
Can anyone think of an alternate way to get a listing of these folder locations? Maybe directly through Java for a faster reading? I run this script every hour on the hour, and it's just been timing out and never running (and the 'aspnet_client' folders have come back.) I know this is a band-aid solution, but scouring the net for solutions on how to keep .NET from creating these abominations throughout a server has yielded nothing.
At least CF has the decency to just create a 'CFIDE' and 'jakarta' vdir in the root of the sites you connect CF to. THAT shows smart programming. Microsoft on the other hand..... the other.... b*tch slappin hand....