Solved

Robocopy problem with Maximum setlocal recursion.

Posted on 2007-03-26
8
3,608 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
Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

 

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 250 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

632 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