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
BLAU0179

W7 64bit
 
 
Robocopy

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.
Blau0179


My System SpecsSystem Spec
.
29 Mar 2015   #2
Tookeri

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
BLAU0179

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
balu0179
My System SpecsSystem Spec
.

Reply

 Robocopy




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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 help required
I've been using Robocopy for a while now and I have found it to be a simple and mostly efficient tool to mirror contents from one drive to another, and I've created a couple of batch files to simplify typing in parameters, like "AF ? ?" to copy my data files from one drive to another. The thing...
General Discussion
Robocopy Issues
Hello Everyone, I have been working on this for the past three days getting no where. The system I am trying this on is a Win7 64 bit Home Ed., what I am trying to do is get a batch file created where it copies certain files to an external hard drive. Yes I am already using the Windows Backup...
General Discussion
Timestamp/Robocopy help
Hi I've just recently realized that copying folders to a backup hard drive resets their "created" date. Should my computer ever crash, all my backup files will state to have just been created on that certain date. Me, being the organize-freak I am, have been looking for a solution so my backed...
General Discussion
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 19:47.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App