Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Robocopy Problem

Posted on 2007-04-03
Medium Priority
Last Modified: 2009-10-29
Hi All..Please put me right. i am trying to both schedule a robocopy operation and log the results. This is my syntax:-
robocopy \\FirstServerName\training\packages\test \\SecondServerName\training\packages\test
/E /RH:2100-2200 /LOG:"C:\Log Files\Backup\packagecopy.log"

What happens is the dos shell flashes on then off the screen with no copy..What have I got wrong here ???
Question by:mrmad1966
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
LVL 67

Expert Comment

ID: 18843821
What's in your log file?
Try it from a command prompt...or use this:

Start->Run->Cmd /k robocopy \\FirstServerName\training\packages\test \\SecondServerName\training\packages\test
/E /RH:2100-2200 /LOG:"C:\Log Files\Backup\packagecopy.log"
LVL 30

Expert Comment

ID: 18843932
If you are scheduling this as a task using the default system account, it will not have the rights to access network resources and will fail. You should change the task to run as a domain user will sufficient rights to the network resources.

Good Luck,

Author Comment

ID: 18844630
What's in your log file?
Nothing...It does not get to the point of being created.. Am I correct in assuming this log file SHOULD be a record of the copy operation ?

Steve, the permissions are fine. If I run the same same command but miss of the /LOG option it runs sweet !

Mr Bounty ! what is the /k switch for ???
Thank /you
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

LVL 67

Accepted Solution

sirbounty earned 252 total points
ID: 18844725
the /k simply states to leave the command window open after processing.
I thought that since it's disappearing that this could present the trouble to you...

If you run it fine from a command prompt without the log switch, then I'd suggest using the short name and leave out the quotes:

robocopy \\FirstServerName\training\packages\test \\SecondServerName\training\packages\test
/E /RH:2100-2200 /LOG:C:\LogFil~1\Backup\packagecopy.log
LVL 30

Assisted Solution

SteveGTR earned 248 total points
ID: 18845092
You might also redirect the standard error to help debug the problem.

robocopy \\FirstServerName\training\packages\test \\SecondServerName\training\packages\test
/E /RH:2100-2200 /LOG:C:\LogFil~1\Backup\packagecopy.log 2>c:\debug.txt
LVL 30

Expert Comment

ID: 18845110
Another thing you might want to do is fully qualify the path where robocopy is located. The scheduled task may not have the path set to automatically locate robocopy. For example:

"c:\program files\program\robocopy" \\FirstServerName\training\packages\test \\SecondServerName\training\packages\test
/E /RH:2100-2200 /LOG:C:\LogFil~1\Backup\packagecopy.log

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

610 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