I expect I'm missing something obvious but am having a problem with xcopy creating directories on 1 of my FreeNAS 9.3 STABLE servers (all latest update). In the batch file excerpt shown below, the last line fails with an "access denied" error & same from command line. However, MD from the CL creates the same dir - very confusing. As near as I can tell, the GUI volume permissions, CIFS, & share are the same across the servers & the smb4.conf are also the same. Any ideas/suggestions appreciated.
xcopy D:\__DVD\*.* \\FN1\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN2\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN3\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN4\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN1\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN2\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN3\Stores\Videos\__DVD\*.* /s /a /y
xcopy D:\__DVD\*.* \\FN4\Stores\Videos\__DVD\*.* /s /a /y