0
有沒有人有任何C#代碼可以幫助格式化robocopy日誌文件,以便更容易上傳到數據庫。RoboCopy日誌文件
樣品日誌
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Thu Jul 07 12:00:12 2011
Source : C:\Sales\Out\
Dest : \\Marketing\Data\In\
Files : *.*
Options : *.* /COPY:DAT /MOV /R:1000000 /W:30
------------------------------------------------------------------------------
0 C:\Sales\In\
*EXTRA File 1.4 m 2011MarketingMaster.XLS
*EXTRA File 1.3 m 2011SalesOutput 01 .XLS
*EXTRA File 1.4 m 2011SalesOutput 02 .XLS
*EXTRA File 1.4 m 2011SalesOutput 03 .XLS
*EXTRA File 1.4 m 2011SalesOutput 04 .XLS
*EXTRA File 1.4 m 2011SalesOutput 05 .XLS
*EXTRA File 1.4 m 2011SalesOutput 06 .XLS
*EXTRA File 1.4 m 2011SalesOutput 07 .XLS
*EXTRA File 1.4 m 2011SalesOutput 08 .XLS
*EXTRA File 1.4 m 2011SalesOutput 09 .XLS
*EXTRA File 1.4 m 2011SalesOutput 10 .XLS
*EXTRA File 1.4 m 2011SalesOutput 11 .XLS
*EXTRA File 1.4 m 2011SalesOutput 12 .XLS
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 13
Bytes : 0 0 0 0 0 461.67 m
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Thu Jul 07 12:00:12 2011
這裏有一堆潛在的數據出口。你對哪些部分感興趣?你有一個表格模式,數據應該適合? – Yuck
你需要從日誌文件中獲得什麼信息?你的數據庫結構是什麼? – ChrisWue
我只對工作摘要感興趣 –