码迷,mamicode.com
首页 > Windows程序 > 详细

c# 可获取系统环境

时间:2018-08-22 16:43:35      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:shel   nts   oid   getenv   var   dial   tool   inf   family   

 

c# 可获取系统环境, 启动进程执等 *.shell

 

[MenuItem("Tools/DesignHelper/Clean and Pull")]
    private static void CleanAndPull()
    {

        var proc = new System.Diagnostics.ProcessStartInfo();
        proc.UseShellExecute = true;
        proc.WorkingDirectory = Environment.GetEnvironmentVariable("KFC_TW");
        proc.Arguments = "";
        proc.FileName = "manager_pull.sh";
        proc.ErrorDialog = true;
        proc.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
        var p = System.Diagnostics.Process.Start(proc);
        p.WaitForExit();
        LogUtil.Debug("manager pull completed");

    }

c# 可获取系统环境

标签:shel   nts   oid   getenv   var   dial   tool   inf   family   

原文地址:https://www.cnblogs.com/javalzy/p/9517920.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!