¡@

Home 

c# Programming Glossary: psi

How do I send ctrl+c to a process in c#?

http://stackoverflow.com/questions/283128/how-do-i-send-ctrlc-to-a-process-in-c

and waits static void Main string args ProcessStartInfo psi new ProcessStartInfo CtrlCClient.exe psi.RedirectStandardInput.. ProcessStartInfo psi new ProcessStartInfo CtrlCClient.exe psi.RedirectStandardInput true psi.RedirectStandardOutput true psi.RedirectStandardError.. CtrlCClient.exe psi.RedirectStandardInput true psi.RedirectStandardOutput true psi.RedirectStandardError true psi.UseShellExecute..

Hanging process when run with .NET Process.Start — what's wrong?

http://stackoverflow.com/questions/439617/hanging-process-when-run-with-net-process-start-whats-wrong

myuser password mypassword int ms 5000 ProcessStartInfo psi new ProcessStartInfo cmd psi.Arguments arguments psi.RedirectStandardOutput.. int ms 5000 ProcessStartInfo psi new ProcessStartInfo cmd psi.Arguments arguments psi.RedirectStandardOutput true psi.WindowStyle.. psi new ProcessStartInfo cmd psi.Arguments arguments psi.RedirectStandardOutput true psi.WindowStyle ProcessWindowStyle.Normal..

How to capture Shell command output in C#?

http://stackoverflow.com/questions/4587415/how-to-capture-shell-command-output-in-c

string output string error string.Empty ProcessStartInfo psi new ProcessStartInfo reg.exe parms psi.RedirectStandardOutput.. ProcessStartInfo psi new ProcessStartInfo reg.exe parms psi.RedirectStandardOutput true psi.RedirectStandardError true psi.WindowStyle.. reg.exe parms psi.RedirectStandardOutput true psi.RedirectStandardError true psi.WindowStyle System.Diagnostics.ProcessWindowStyle.Normal..

how to pass html as a string using wkhtmltopdf?

http://stackoverflow.com/questions/4651373/how-to-pass-html-as-a-string-using-wkhtmltopdf

pageSize Process p StreamWriter stdin ProcessStartInfo psi new ProcessStartInfo psi.FileName Path.Combine commandLocation.. stdin ProcessStartInfo psi new ProcessStartInfo psi.FileName Path.Combine commandLocation HtmlToPdfExePath psi.WorkingDirectory.. psi.FileName Path.Combine commandLocation HtmlToPdfExePath psi.WorkingDirectory Path.GetDirectoryName psi.FileName run the..

Hosting external app in WPF window

http://stackoverflow.com/questions/5028598/hosting-external-app-in-wpf-window

e button1.Visibility Visibility.Hidden ProcessStartInfo psi new ProcessStartInfo notepad.exe _process Process.Start psi.. new ProcessStartInfo notepad.exe _process Process.Start psi _process.WaitForInputIdle SetParent _process.MainWindowHandle..

Starting a process with credentials from a Windows Service

http://stackoverflow.com/questions/677874/starting-a-process-with-credentials-from-a-windows-service

Best way to programmatically configure network adapters in .NET

http://stackoverflow.com/questions/689230/best-way-to-programmatically-configure-network-adapters-in-net

it from C# would be Process p new Process ProcessStartInfo psi new ProcessStartInfo netsh interface ip set address Local Area.. 192.168.0.10 255.255.255.0 192.168.0.1 1 p.StartInfo psi p.Start Setting to static can take a good couple of seconds..

Piping in a file on the command-line using System.Diagnostics.Process

http://stackoverflow.com/questions/850802/piping-in-a-file-on-the-command-line-using-system-diagnostics-process

string errorLines string.Empty Process svnCommand null var psi new ProcessStartInfo command psi.RedirectStandardOutput true.. svnCommand null var psi new ProcessStartInfo command psi.RedirectStandardOutput true psi.RedirectStandardError true psi.WindowStyle.. ProcessStartInfo command psi.RedirectStandardOutput true psi.RedirectStandardError true psi.WindowStyle ProcessWindowStyle.Hidden..