首先,我打开了IIS Admin 服务中的“允许服务和桌面交互” 的钩钩
然后,我调用“C:\ys\ys\tiaoma.exe” 有界面,有进程,但是只能看到一个文本框,可以拖动,但是看不到整个程序的显示的内容 具体如图: http://i433.photobucket.com/albums/qq57/9880132/4S27OSLES8_EB00YC6_C.jpg
http://i433.photobucket.com/albums/qq57/9880132/VTKMYMSM12FGFJ5D1G.jpg希望大家有谁知道怎么处理的,告诉我一下呀,谢谢, QQ:187954<a href="http://s433.photobucket.com/albums/qq57/9880132/?action=view¤t=4S27OSLES8_EB00YC6_C.jpg" target="_blank"><img src="http://i433.photobucket.com/albums/qq57/9880132/4S27OSLES8_EB00YC6_C.jpg" border="0" alt="Photobucket"></a><a href="http://s433.photobucket.com/albums/qq57/9880132/?action=view¤t=VTKMYMSM12FGFJ5D1G.jpg" target="_blank"><img src="http://i433.photobucket.com/albums/qq57/9880132/VTKMYMSM12FGFJ5D1G.jpg" border="0" alt="Photobucket"></a>-------------------------------代码--------------------------------private void mytest()
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\ys\ys\tiaoma.exe");
psi.RedirectStandardOutput = true;
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized;
psi.UseShellExecute = false;
psi.CreateNoWindow = false;
psi.RedirectStandardOutput = true;
System.Diagnostics.Process listFiles;
listFiles = System.Diagnostics.Process.Start(psi);
System.IO.StreamReader myOutput = listFiles.StandardOutput;
listFiles.WaitForExit(2000);
if (listFiles.HasExited)
{
string output = myOutput.ReadToEnd();
this.processResults.Text = output;
}
} protected void LinkButton1_Click(object sender, EventArgs e)
{
mytest()
}
http://i433.photobucket.com/albums/qq57/9880132/4S27OSLES8_EB00YC6_C.jpg 左边是正常的运行的程序,右边是用上面的代码运行的程序, 右边的根本不能看希望大家教我,谢谢