Solved

Robocopy command for merging documents into a folder with long filenames

Posted on 2014-11-19
3
33 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now