Re-reading the original issue, and reading aLTeReGo's response made me go back an look at this again. What I saw was that you can successfully run it, up until you hit 28k files, at which point you get a quota violation error. This would explain the NaN message, because the error isn't a number, as was pointed out. How is this being executed? Is it against a local path, or a remote path? Are you using remoting to query a local path on a remote server? I'm wondering if you're hitting a quota limit on the remote memory if you're using remoting. By default, remoting only allows 150MB per shell, and doing a GetFiles on a path with 28k files in might exceed that. Of course, I could be way off the mark, and it could be something simple.
↧