zoukankan      html  css  js  c++  java
  • WPF应用程序exe接收参数

    using System;
    using System.ServiceProcess;

    namespace GoShopService
    {
        public partial class Service1 : ServiceBase
        {
            protected override void OnStart(string[] args)
            {
                try
                {
                    if (args.Length == 0)
                    {

                    }
                    if (args[0].ToLower() == "/i" || args[0].ToLower() == "-i")
                    {

                    }
                }
                catch (Exception ex)
                {

                }
            }
            protected override void OnStop()
            {

            }
        }
    }

  • 相关阅读:
    图论初步
    分块和块状链表
    线段树入门
    ST表与树状数组
    [luogu P1312]Mayan游戏
    [luoguP4139]上帝与集合的正确用法


    电解质
    无机盐
  • 原文地址:https://www.cnblogs.com/sntetwt/p/8888754.html
Copyright © 2011-2022 走看看