Solved

Robocopy command for merging documents into a folder with long filenames

Posted on 2014-11-19
3
36 Views
Last Modified: 2015-06-29
Hey team,

We tried to move all docs from a folder to a new folder, it failed (skip remaining files) and left the remnants behind.
So now I need to move those files into their new home with a Robocopy command.

Can somebody help me with this?

Thanks!
0
Comment
Question by:optimus_nz
3 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40454493
What you can do is share the destination folder temporarily to get around the long file name issue (if it is an issue).

Let's say for example the new folder is in D:\folder1\folder2\folder3\....\folder50 you can just share folder50 then use \\localhost\folder50 for the destination.

Use the below code to use Robocopy to copy over the rest of the files which didn't move over during the original file moves:
Robocopy D:\Folder \\Server\Folder50 /E /COPY:DATS /R:0 /W:0 /XO /V /LOG:D:\Robocopy.log

Open in new window

You may notice that I didn't use the /MOVE switch above, I just like to do this for precautionary measures in case the Robocopy job screws up for whatever reason. Feel free to include it in the above code.
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40856569
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question