I did my script to backup daily files.But the script need to be run manually.Thus, I'm thinking of to do it run automatically in windows background. But if the script run automatically, it will not able to monitor the process either the files copied is successful or not. So, i need a technique that can log not just what the batch scripts are trying to do, but what the results are..
Below are my scripts..
:: drive = destination %1 , source file = %2
set backupcmd=xcopy /s /d /e /h /i /f /y
%backupcmd% "%2" "%drive%"
I really don't have any idea to make it run automatically.
I did some reference: To log the result of this, I might try:
net group MyGroup joe /add >> AddAccts.log
i got confused on this..can someone please guide and explain it to me clearly?
really need your guidance,