protected void Button1_Click(object sender, EventArgs e) { var p = new Process { StartInfo = { UseShellExecute = false, FileName = "SCHTASKS", RedirectStandardError = true, RedirectStandardOutput = true, CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, Arguments = "/Run/TN MytestTask" } }; p.Start(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)