日期:2014-05-17  浏览次数:21226 次

process.StartInfo.CreateNoWindow = false;

process.StartInfo.CreateNoWindow = false;   这个参数是什么意思,我设置为true也没有什么改变



        public Process ProcessStart(string fileName, string command=null)
        {
            try
            {
                Process process = new Process();
                process.StartInfo.FileName = fileName;
                process.StartInfo.Arguments = command;
                process.StartInfo.UseShellExecute = false;
                process.StartInfo.RedirectStandardInput = true;
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.RedirectStandardError = true;
                process.StartInfo.CreateNoWindow = false;
                process.Start();
                return process;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }


------解决方案--------------------