RoboCopy日志文件 [英] RoboCopy Log File

查看:89
本文介绍了RoboCopy日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有C#代码来帮助格式化robocopy日志文件,以便更轻松地上传到数据库.

Does anyone have any C# code that would help format the robocopy log file for easier upload to a database.

样品记录

-------------------------------------------------------------------------------
   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

推荐答案

如果仅对文件感兴趣,则使用/NJH(无作业标题)和/NJS(无作业摘要)开关可能会使您的工作容易得多: MSDN:Robocopy

If you're interested in the files only, using the /NJH (no job header) and /NJS (no job summary) switches might make your work a lot easier: MSDN: Robocopy

这篇关于RoboCopy日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆