
08/04/2005, 10:52
|
 | Moderador | | Fecha de Ingreso: febrero-2002 Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años, 1 mes Puntos: 50 | |
Pueds hacerlo así: Cita: // Create the ProcessInfo object
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("tu_archivo.exe");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardInput = true;
psi.RedirectStandardError= true;
psi.WorkingDirectory = sPath;
// Start the process
System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);
// Close the process
proc.Close(); Salu2 |