karthik v

karthik v

  • NA
  • 109
  • 70.7k

Batch File

Jul 17 2012 1:45 PM
Hi Experts

I wanted to create a error log when we run a batch on the server.So if i run a batch i need a error log with date time stamp and that errors if there are any when running a batch. Here is what i have which is running good. can any one help me in this ...


@echo
:: variables

set destdrive=Z:
set copy=xcopy /s /c /d /e /h /i /r /y
 
echo # # # Moving files
%copy% "C:\Users\c09353\Desktop\test" "%destdrive%"
 
echo