p.StartInfo.FileName = "Route.exe"
??
服务器的%path%设置正确不?

解决方案 »

  1.   

    tryDim p As New Process()
    Dim s as string = "-p add 10.70.168.0 mask 255.255.255.0 10.70.168.1" 
    p.StartInfo.CreateNoWindow = True
    p.StartInfo.FileName = "Route.exe"
    p.StartInfo.Arguments = s
    p.StartInfo.UseShellExecute = False
    p.StartInfo.RedirectStandardOutput = True
    p.StartInfo.RedirectStandardError = True
    p.Start()Dim output As String = p.StandardOutput.ReadToEnd()
    Dim sError as String = p.StandardError.ReadToEnd()
    p.WaitForExit()
    Response.Write("ExCode:" + p.ExitCode.ToString + "<br>" + output + "<br>errors:" + sError)