zoukankan      html  css  js  c++  java
  • CommandLine exe参数

     [Verb("OptionsEntity")]
        public class OptionsEntity
        {
            [Option('a', HelpText = "Plantform Advitiser id", MetaValue = "Plantform Advitiser id", Required = false)]
            public string AdvitiserId { get; set; }
            [Option('c', HelpText = "Channel Id (int)", MetaValue = "Channel Id (int)", Required = false)]
            public int ChannelId { get; set; }
            [Option('s', HelpText = "Start Date", MetaValue = "The start date of the download", Required = false)]
            public DateTime StartDate { get; set; }
            [Option('e', HelpText = "End Date", MetaValue = "The end date of the download", Required = false)]
            public DateTime EndDate { get; set; }
            [Option('t', HelpText = "Sync Customer||Account||Campaign", MetaValue = "Sync Customer || Account || Campaign", Required = false)]
            public bool SyncCustomerAccountCampaign { get; set; }
    
        }

    cmd中执行命令

    start DownloadDailyReportCsvToHadoop.exe OptionsEntity  -c 1 -s 2018-03-01 -e 2018-03-04 -t true
    

     

    powershell中执行命令:

    cmd /c dotnet DVM.Report.DownLoadTools.dll  AppNexusCmd -s %startDate% -e %appNexusEndDate% 
    

      

     

  • 相关阅读:
    js location.href ,location.replace, location.reload
    //js date对象常用方法
    js Math对象常用方法
    n sum
    two sum
    树:树中两个节点的最低公共祖先
    C++11:智能指针与lambda表达式
    回溯: 0-1背包
    动态库的soname实验
    DNS介绍与安装使用
  • 原文地址:https://www.cnblogs.com/panpanwelcome/p/8510953.html
Copyright © 2011-2022 走看看