RuNLeVeL Posted January 12, 2009 Posted January 12, 2009 (edited) Hello All, I need to move 3.5 TB of data from one NAS to another, I am using Robocopy and want to create an automated way of doing this : robocopy \\agamicifs\img\img1 \\nstore1\F\img0 /E /log:Local11.txt robocopy \\agamicifs\img\img2 \\nstore1\F\img1 /E /log:Local12.txt robocopy \\agamicifs\img\img3 \\nstore1\F\img2 /E /log:Local13.txt robocopy \\agamicifs\img\img4 \\nstore1\G\img0 /E /log:Local14.txt robocopy \\agamicifs\img\img5 \\nstore1\G\img1 /E /log:Local15.txt robocopy \\agamicifs\img\img6 \\nstore1\G\img2 /E /log:Local16.txt robocopy \\agamicifs\img\img7 \\nstore1\H\img0 /E /log:Local17.txt robocopy \\agamicifs\img\img8 \\nstore1\H\img1 /E /log:Local18.txt robocopy \\agamicifs\img\img9 \\nstore1\H\img2 /E /log:Local19.txt robocopy \\agamicifs\img\img10 \\nstore1\I\img0 /E /log:Local20.txt robocopy \\agamicifs\img\img11 \\nstore1\I\img1 /E /log:Local21.txt robocopy \\agamicifs\img\img12 \\nstore1\I\img2 /E /log:Local22.txt robocopy \\agamicifs\img\img13 \\nstore1\J\img0 /E /log:Local23.txt robocopy \\agamicifs\img\img14 \\nstore1\J\img1 /E /log:Local24.txt robocopy \\agamicifs\img\img15 \\nstore1\J\img2 /E /log:Local25.txt robocopy \\agamicifs\img\img16 \\nstore1\K\img0 /E /log:Local26.txt robocopy \\agamicifs\img\img17 \\nstore1\K\img1 /E /log:Local27.txt robocopy \\agamicifs\img\img18 \\nstore1\K\img2 /E /log:Local28.txt robocopy \\agamicifs\img\img19 \\nstore1\L\img0 /E /log:Local29.txt robocopy \\agamicifs\img\img20 \\nstore1\L\img1 /E /log:Local30.txt Instead of running each line from a cmd line, does anyone know the .bat way of having each line kick off as soon as the previous command is finished. Resource wise I do not want them all running at once, just sequentially. I have tried the search function and all the scripts I find are way too complex for my needs. Thanks All ! Edited January 12, 2009 by RuNLeVeL
FireFox Posted January 12, 2009 Posted January 12, 2009 @RunLevel Look at For ; Next Cheers, FireFox.
Danny35d Posted January 12, 2009 Posted January 12, 2009 @RunLevelLook at For ; Next Cheers, FireFox.Or add Start /wait /b Ex:Start /wait /b robocopy \\agamicifs\img\img1 \\nstore1\F\img0 /E /log:Local11.txtNote: I will also add switches /r:3 /w:10. By default robocopy.exe try to copy a file 1 million times and wait 30 seconds between tries before giving up in the event of error. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
RuNLeVeL Posted January 14, 2009 Author Posted January 14, 2009 Thanks man, thats exactly what i was looking for Or add Start /wait /b Ex:Start /wait /b robocopy \\agamicifs\img\img1 \\nstore1\F\img0 /E /log:Local11.txtNote: I will also add switches /r:3 /w:10. By default robocopy.exe try to copy a file 1 million times and wait 30 seconds between tries before giving up in the event of error.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now