Solved Robocopy

BLAU0179

New member
Local time
11:33 AM
Messages
7
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
W7 64bit
CPU
Intel Core I7
Memory
8 GB
Graphics Card(s)
ATI Radeon HD 4800
Hard Drives
Hitachi
Antivirus
Microsoft Essential
Browser
Explorer
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
W7 64bit
CPU
Intel Core I7
Memory
8 GB
Graphics Card(s)
ATI Radeon HD 4800
Hard Drives
Hitachi
Antivirus
Microsoft Essential
Browser
Explorer
Back
Top