|
Answer» Hello
The code for a batch file
copy folder (my folder name is = my user client on the network username .for example MAY user name is user1 So my folder ind DRIVE D is User1) from one drive to another copy.
I've tested this code, but did not answer.
Code: [Select]MD D:\bdc94 attrib -r -h -s D:\bdc94\*.* xcopy "d:\%username%\*.*" d:\bdc94 /Q /Y /R /S batch file for use in policy server 2012(client win7) tanks The solution to this problem?
ThanksYour details are conflicting.
Describe exactly what you need to do and someone will provide you with some code.
or test this:
Code: [Select]echo off robocopy "d:\%username%" "e:\test folder\%username%" /mir Thanks My problem was solved with your code Good luckHello I've got a problem in copying some files Some will not copy files and folders and message retry show. The other files are not copied How, if did not copy the file access. It is automatically canceled and the next file is to be copied
Thanks
Code: [Select]2015/07/26 08:08:14 ERROR 5 (0x00000005) Copying File d:\Aslani\AppData\Roaming\ Microsoft\Excel\Excel12.xlb Access is denied. Waiting 30 seconds... Retrying... New File 10382 Excel12.xlb 2015/07/26 08:08:44 ERROR 5 (0x00000005) Copying File d:\Aslani\AppData\Roaming\ Microsoft\Excel\Excel12.xlb Access is denied. Waiting 30 seconds... Retrying... New File 10382 Excel12.xlb 2015/07/26 08:09:14 ERROR 5 (0x00000005) Copying File d:\Aslani\AppData\Roaming\ Microsoft\Excel\Excel12.xlb Access is denied. Waiting 30 seconds... Retrying... New File 10382 Excel12.xlb 2015/07/26 08:09:44 ERROR 5 (0x00000005) Copying File d:\Aslani\AppData\Roaming\ Microsoft\Excel\Excel12.xlb Access is denied. Waiting 30 seconds... Retrying... New File 10382 Excel12.xlbTwo things stop the files from copying:
A) is that you need to use an account with sufficient access privileges to copy all the files, and B) any files that are locked and in use will not copy, WITHOUT using volume shadow copy techniques.
Your other point can be solved by changing the timeout to zero seconds and the retry count to zero
Add the two SWITCHES SHOWN here.
robocopy /r:0 /w:0Hello
Thanks
|