叶面打开的时候
               string strExePath = HttpContext.Current.Server.MapPath(@"bin/ELEEYE.EXE");
                Process p = new Process();
                p.StartInfo.FileName = strExePath;
                p.StartInfo.UseShellExecute = false;
                p.StartInfo.RedirectStandardInput = true;
                p.StartInfo.RedirectStandardOutput = true;
                p.StartInfo.RedirectStandardError = true;
                p.StartInfo.CreateNoWindow = true;
                p.Start();
                p.StandardInput.WriteLine("ucci");
                p.StandardInput.WriteLine("setoption batch on");在staic  Ajax方法里想要    p.StandardInput.WriteLine("position fen " + fen + " b - - 0 0");
                p.StandardInput.WriteLine("go time 1000");                p.StandardInput.WriteLine("quit");
                string re = p.StandardOutput.ReadToEnd();
                p.Close();这样得不到那个p
用getProceeById((int)HttpContext.current.Session[pid])
也找不到。
winform下是可以的,webForm就不灵光了。AJAX象棋,效果见
http://www.dullwolf.cn/chess/如果上述问题能解决,我就可以做到后台思考了,不必每次请求都打开一次进程。