Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure...

@echo off

pause

robocopy "C:\Users\o\Desktop\2023" "D:\2023" /e /mir /np /v /tee /r:0 /w:0 /log+:"C:\Users\o\Desktop\log_robocopy.txt"

pause

@echo on



You don’t need to turn echo back on at the end of your batch file. That line is pointless.


And don't need /e since /mir=/e /purge


Thanks. This script has adapted over time and I need to lookup most of the switches these days to remind me what they do.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: