Hello friends,
I m using this code in batch for copy files from one system to another system.
this batch file is working on some system like 4-5 system but In 2-3 system this batch file is not working may there are some permission issues so have u any idea how to give permission in batch files so that we can use it...
MD "C:\Program Files\ExamSoftware"
xcopy "\\Server1\f\ExamSoftware\*.*" "C:\Program Files\ExamSoftware" /E /H /R /s/c/Y
this batch file is working on some system like 4-5 system but In 2-3 system this batch file is not working may there are some permission issues so have u any idea how to give permission in batch files so that we can use it...
MD "C:\Program Files\ExamSoftware"
xcopy "\\Server1\f\ExamSoftware\*.*" "C:\Program Files\ExamSoftware" /E /H /R /s/c/Y


Vaikesh K PRank #808 · 2.8K reputationPosted Aug 19, 2015, 12:21 AM EDT
Example
Type xcopy c:\olddoc c:\newdoc /O /X /E /H /K, and then press ENTER, where olddoc is the source folder and newdoc is the destination folder.