Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Robocopy

29 Mar 2015   #1

W7 64bit

I have created a robocopy.bat as below :

robocopy C:\Users\Faust_000\Documents\Alfredo "F:\Backups Documents" /e /mir /z /np /tee /log:Alfredo_log.txt

and I have created a Planned Activity into the Planning Utility to run at certain time every day.

Now my question is :
1. if manually activeted by double click robocopy.bat it perfectly works and the log.tx file is created
2. if I execute the robocopy by the Planned Activity (by manually Excute or automatically at the planned time) the robocopy is done correctly but the log.txt file is not created or updated.

I did both on W7 Professional 64bit and on W8.1 64bit but no difference.
Could someone help me to understand why the difference of results manually and via Planned Activity ?
Thank in advance.

My System SpecsSystem Spec
29 Mar 2015   #2

Windows 7 Pro 32

I don't use Robocopy or Planned Activity but it might perhaps be related to the current directory when the bat file is executed. If so, the other log file should be somewhere on your system and you could search for it.

I mean when you manually run the bat file you get a certain "current directory", but in the other scenario you get another directory. You can try to include a path for the log parameter or move to a certain directory with the cd command in the bat file, before the robocopy command.
My System SpecsSystem Spec
30 Mar 2015   #3

W7 64bit

Tookeri, thank a lot. I searched in all C:\ but the only place where there is the log.txt is the folder where is also stored the robocopy.bat. and created by manual execution. Probably by Plannned Activity is not create/updated the log.txt .
But as per your suggestion I have amended the robocopy.bat including the target directory of the log.txt as below, and it perfectly works both by manual and by using the Planned Activity into Planning Utilities.

robocopy C:\Users\Faust_000\Documents\Alfredo "F:\Backups Documents" /e /mir /z /np /tee /log:"C:\Users\Faust_000\Documents\Spegni PC"\Alfredo_log.txt

It works. Thank
My System SpecsSystem Spec



Thread Tools

Similar help and support threads
Thread Forum
Robocopy (help please)
Hi, I have 2 questions which I desperately need help with. Here's the question: 1. robocopy shoud Run in a separate terminal window and recheck file system changes every minute. 2. write a continous logfile that contains all detected file system changes including full pathnames of affected ...
General Discussion
Robocopy how?
Need to back up data-drive regularly on drive F and send to data-drive G Robocopy has been mentioned as win7 built-in. I'm confused what is it & how to use it?
Backup and Restore
Robocopy Synology
Hello everyone been lurking around for awhile, so much knowledge on this forum. I hope someone can help me, I am just a noob, don't know to much. I ecently purchased a synology Network Attached Storage (NAS). and I would like to set up so that files tranfer from one folder to the next...
Network & Sharing
I need some help with Robocopy GUI please.
Hello all, To save my life I could not get the Robocopy GUI to work. I have no problem using it with command line by dropping in to CMD. Tried the GUI it reported that the job is finished as soon as I click "RUN" but nothing copied. Thank you kindly, Nid
General Discussion
Robocopy still the best option?
I've never had a backup routine but am about to begin. Was going to implement RAID 1 but after some forum education am finding out a removable backup disk is what I really want. So, should I assume Robocopy (likely with GUI) is still the way to go for my simple /E /Purge needs? I will be mirroring...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:17.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App