ITPub博客

首页 > > > c# Process.Start参数问题 路过的大侠帮忙看下 谢谢

c# Process.Start参数问题 路过的大侠帮忙看下 谢谢

作者:doudourabbit 时间:2019-09-19 10:06:22 0 删除 编辑

代码:

public frWz(string time)
        {
            InitializeComponent();
            MessageBox.Show(time.ToString());if (string.IsNullOrEmpty(time))
            {
            }
            else
            {
               // Setinterval(pushTime * 86400000);
            }
            //var pts = new ParameterizedThreadStart(ThreadMethod);
            //td = new Thread(pts);
            //td.IsBackground = true;
            //td.Start(td);

            Process.Start(Application.ExecutablePath, (1 * 86400000).ToString());
        }

winfrom 程序

Process.Star启动当前运行的exe 但是我传递了一个参数 结果每次弹出的是null ?

为什么?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4809/viewspace-3167486/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-25

  • 博文量
    193
  • 访问量
    1438