Solved

Robocopy fails to move files from large folder

Posted on 2010-09-02
3
1,244 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
[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
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
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 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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

710 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