See the 2 issues that could cause it to fail as I detailed. The first is that you added a trailing backslash in myDir or strDir. You may have more luck using a UNC path for that first parameter. e.g. //matpc10/myfiles is the same as my D:.

I'll have to look into issue 2 a bit more to see if we can skip Hidden folders.