When I tried the command
xcopy \\servername\public\adminfiles" "%SystemDrive%\Program Files\Admin System\" /D

It would fail. How could I use xcopy here?