I guess I should ask the obvious question...

Error 2 is a standard DOS error "The system cannot find the file specified."

Are you certain that the path is correct and that there are files present that match the wildcard?

If there are no matching files in the directory then an error 2 would be an appropriate error value.