Solved

Robocopy command for merging documents into a folder with long filenames

Posted on 2014-11-19
3
42 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

688 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