i have script bat file for move file from one folder to each other folder and create the log file. the script like this :
Copy /y c:\temp\temp1\* c:\temp\temp2\ >>c:\temp\makelog.txt
echo %Date% >>c:\temp\makelog.txt %Time% >>c:\temp\makelog.txt
and ouput log like this
c:\temp\temp1\test.jpg
1 file(s) copied.
03-Nov-17 10:41:35.52
i hope i can create output like this :
c:\temp\temp1\test.jpg | 1 file(s) copied. | 03-Nov-17 10:41:35.52
any one help me?
thank you so much.
FOR /Fcommand to capture the output of theCOPYcommand. But you also have to take into consideration if it copies more than one file the output will be completely different.