Solved

Robocopy fails to move files from large folder

Posted on 2010-09-02
3
1,200 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
Learn about cloud computing and its benefits for small business owners.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

763 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

6 Experts available now in Live!

Get 1:1 Help Now