New
#220
Robocopy
Great!! Now is working perfectly in both ways. Manual and Task Scheduler. Many many thanks.
Great!! Now is working perfectly in both ways. Manual and Task Scheduler. Many many thanks.
Dear All I have a simple script to backup a folder that I work on to a USB HD. I have another HD that Has over 40 folder and looking for a script that will copy all the folders to another HD.
Is this the only way?
robocopy E:\folderA G:\folderA
robocopy E:\folderB G:\folderB and so on or is there another way.
any help is welcome
Reagards
Hi Kaktussoft
Thank you very much for the script it works exactly as I wanted it to.
Thanks again and keep the good work up.
Regards
Let me know if I should start a new thread for this.
In regards to the multithread switch MT[:n] I'm using a Intel 2600K so naturally I would set it to 8 threads (I know /MT is 8 thread by default) but Robocopy allows for up to 128 threads. What are the advantages/disadvantages of using more threads? Will it copy faster or slower? All my transfers are from one physical hdd to another.
If I use the multithread switch will I increase fragmentation on the source drive? or does Robocopy pre-allocate files before copying?
*UPDATE*
After experimenting with the /MT swtich I noticed 2 things/bugs:
1) 'Date Modified' timestamp for nested directories is not copied over if /MT switch is used. Lets say you have folder A and within folder A you have folders 1, 2, 3, 4 and 5. If /MT switch is used 'Date Modified' timestamp will not be copied over for folders 1 through 5, however 'Date Created' will be copied over.
2) Speed in Bytes/sec. and MegaBytes/min. will not be displayed/reported when job is complete.
Last edited by 0pTicaL; 10 Feb 2014 at 22:28.
I decided to use RoboCopy to backup my cell phone. I have been using it to backup several PCs and servers for about a year with excellent results.
The issue - when I attach my phone to a PC with a USB cable, I see it listed in Windows Explorer along with the hard drives and DVD on the PC. It's labeled "SPH-L710".
I use the DiskPart command as part of my RoboCopy script to show me the drives on the PC. However, DiskPart doesn't show the phone as a hard drive (or anything else).
I looked in Explorer and sure enough there is no drive letter associated with the phone.
Question is... How do I reference the phone as a location to copy from ??
Have a look here:
2nd post HEREThe Phone is not mounted as a standard USB device, so it isn't assigned a drive letter. Instead it is being mounted as a MTP device. Microsoft is being "user friendly" in the Explorer shell by giving it a path, and you can browse the folders etc. But I think it is only being seen by Explorer, and it isn't recognized as a storage device at the actual OS level. So the robocopy command doesn't see it.
A Guy
RoboCopy needs both source and target paths and cannot be used if either of them has no valid path available.
Not knowing what phone you have and not knowing other than Windows / Symbian / Meego / Maemo phones, I cannot be sure if your phone offers this option, but for instance my older Nokia N900 phone lets me select the mode when I connect it to PC, either a PC Suite Mode (no drive letter) or Mass Storage Mode (phone acts as normal external USB storage with drive letter).
My Windows Phones always get a drive letter automatically.