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

x
?
Solved

Robocopy problem with Maximum setlocal recursion.

Posted on 2007-03-26
8
Medium Priority
?
3,670 Views
Last Modified: 2013-03-07
When running Robocopy to copy files from one share to another I receive the following output.  

"Maximum setlocal recursion level reached".

This output runs continuously until I manually kill the job.

I have tried the following robocopy script straight from DOS and also thru a bat file.

robocopy \\server\mysqlbackups f:\MYSQL *.* /MOV

What would cause this?



0
Comment
Question by:bta-nsg
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18794798
what if you try it without the *.* (it's assumed anyway)
0
 

Author Comment

by:bta-nsg
ID: 18795406
Same error after removing *.*
0
 
LVL 88

Expert Comment

by:rindi
ID: 18795469
what happens if you stop sql services before doing the copy?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:bta-nsg
ID: 18795635
After stopping SQL services the same problem exists.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18796254
What if you limit the file specs to a certain you type?
Instead of *.* use *.txt (or some other spec)
0
 
LVL 88

Expert Comment

by:rindi
ID: 18798019
Try:

robocopy "\\server\mysqlbackups" "f:\MYSQL" *.* /MOV

Also replace \\server with \\IPAddress if you haven't already tried that.
0
 
LVL 85

Accepted Solution

by:
oBdA earned 1000 total points
ID: 18799115
You've probably named the script itself "robocopy.bat" or "robocopy.cmd" (or have a script with that name around somewhere), so the script calls itself instead of robocopy.exe. Either specify the full path and name to robocopy.exe in the script, or rename the script.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18799749
Yep - I figured that was it when I saw your post oBdA...good call! :^)
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

722 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