Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Robocopy fails to move files from large folder

Posted on 2010-09-02
3
Medium Priority
?
1,277 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
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…

660 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