没有js
if (!IsPostBack)
{
System.Diagnostics.Process Proc;
try
{
Proc = System.Diagnostics.Process.Start("C:/Documents and Settings/Administrator/桌面/sql.bat");
PageBse.AlertALL(Page, "用户名不能为空");
return;
}
catch (System.ComponentModel.Win32Exception ex)
{
Console.WriteLine("系统找不到指定的程序文件。\r{0}", ex);
return;
}
bool isExist = false;
while (!isExist)
{
Proc.WaitForExit(3000);
if (Proc.HasExited == false)
{
Console.WriteLine("执行失败");
return;
}
else
{
Console.WriteLine("执行成功");
isExist = true;
}
}}
最前面的几句代码