R-Code read and write to CIFS drive getting errors

Great. Please mark your answer as the solution for the benefit of those to follow.