[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Robocopy will not run

I am trying to use robocopy to copy a few files from one network share to another network share.  robocopy \\nas\files \\nas2\files  /mir  /sec.  When I try to run this command it just sits at \\nas\files and doesn't transfer anything.  I checked permissions and everything looks to be ok.
0
dcitdir
Asked:
dcitdir
  • 2
  • 2
1 Solution
 
John HurstBusiness Consultant (Owner)Commented:
Open cmd.exe with Run as Administrator and see if the command works now.
0
 
dcitdirAuthor Commented:
Tried that and it does the same thing.  I tested on another share that has the same permissions and the command works.
0
 
KorbusCommented:
Did your test that WORKED use the same destination?  If not, I would double check the "READ ONLY" setting on the destination.
As a sanity check: what happens if you MANUALLY copy a couple of files from the same source & destination, using say... windows explorer?
Is it possible the source files, or source file system is corrupted?  Running CHKDSK on the source should at least eliminate possible file system corruption.  Can the files be opened and looked at to confirm they are not corrupt?

You mentioned SHARE permission, can you confirm you ALSO have NTFS permissions on the folder and files in question? (two separate sets of permissions to be checked)
0
 
dcitdirAuthor Commented:
The test was to the same destination folder.  I manually copied a few files and they copied without any issue. I have been running this regularly for the past few months and it just stopped working.  I decided to try rename the folder on the destination and try run and it worked.  Perhaps something corrupt in that folder.
0
 
KorbusCommented:
>> been running this regularly for the past few months
How many files were in the destination before you renamed it?  If it contained 1000's of files, this COULD cause a delay.  

Did you change the destination in your command, or rename the actually destination folder (so a new one is created when the command runs)?

Corruption:  I would recommend a backup followed by a CHKDSK operation.  If the NAS is not a windows box, perhaps it has some tool in it's interface to do this?

Glad you got it working!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now