Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2005, 10:52
Avatar de RootK
RootK
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
__________________
Nadie roba nada ya que en la vida todo se paga . . .

Exentrit - Soluciones SharePoint & Net