robocopy not working... (1 Viewer)

conception_native_0123

Well-known member
Local time
Today, 15:10
Joined
Mar 13, 2021
Messages
1,834
where is arnelgp? need him again! my robocopy is stopping without going through with first command. i do not know how to print out errors with pipe or anything. it just breaking on first command. even when i run with second command only, it not working. here is my whole script

Code:
@echo off

echo Deleting all files in [C:\Users\u\2]...
del "C:\Users\u\2\*.*" /Q
echo All files have been deleted.

echo Copying files from [C:\Users\u\1] to [C:\Users\u\2]...
robocopy "C:\Users\u\1" ^
"C:\Users\u\2 *.*"
echo All files have been copied.

exit
i follow instruction in both thesee sites but nothing work. what am i doing wrong?


 

conception_native_0123

Well-known member
Local time
Today, 15:10
Joined
Mar 13, 2021
Messages
1,834
issue is solved but have another question. how do i pipe out error logs? i can not seem to find solution to this. error handling yes but not piping.
 

Users who are viewing this thread

Top Bottom