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
Solved

Robocopy fails to move files from large folder

Posted on 2010-09-02
3
1,224 Views
Last Modified: 2012-05-10
Hi there

I've been successfully using this command to move files based on the date to another folder for some time now. However, when I use the same command on a folder with a lot of files (1 million+ files) it fails with the message "The specified Network name is no longer valid".

Any ideas how else I can move files out of this one huge folder? Robocopy doesn't seem to be the answer. I can't even bring up the folder in Windows Explorer as its too large and hangs Explorer. But I need to retain the files, just move them into other folders based on the date.
many thanks

robocopy "\\SERVER_NAME\d$\SOURCE_FOLDER" \\SERVER_NAME\d$\DESTINATION_FOLDER /minage:20060101 /mov

0
Comment
Question by:stack888
  • 2
3 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 33593268
What happens if you map drives first?

I.e,

Net use S: \\Server_Name\d$\source_folder <Enter>
Net use T: \\Server_Name\d$\Target_folder <Enter>

robocopy S:\ T:\ /minage:20060101 /mov

Also - since it 'appears' this is both sourced and targeted on the same server, why not do it on the console?  Or did I assume incorrectly?
0
 
LVL 2

Author Closing Comment

by:stack888
ID: 33598143
thanks Sirbounty. I was being a complete idiot! You correctly pointed out that i could just run this on the console as both folders were local. Now it runs ok. Interesting that Robocopy struggles with large folders when you use UNC paths. Something to remember for future use.
thanks for your help.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 33598584
Not so sure it's robocopy - just my opinion...you're adding extra overhead relying on the network dependency.  Glad it's working for you though.  Thanks for the grade! :^)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

792 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