
26/03/2008, 15:24
|
 | | | Fecha de Ingreso: marzo-2007
Mensajes: 64
Antigüedad: 17 años, 11 meses Puntos: 0 | |
Re: comando findstr en c# StringBuilder sb = new StringBuilder();
sb.Append("hora del sistema: " + DateTime.Now.ToString("hh:mm:ss") +Environment.NewLine);
Process myProcess = new Process(); ProcessStartInfo myProcessStartInfo = new ProcessStartInfo("findstr"," /s \"ou\" c:\ *.txt "); // ME DA ERROR
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
myProcess.StartInfo.CreateNoWindow = true;
myProcessStartInfo.UseShellExecute = false;
myProcessStartInfo.RedirectStandardOutput = true;
myProcess.StartInfo = myProcessStartInfo;
myProcess.Start();
string output = myProcess.StandardOutput.ReadToEnd();
myProcess.Close();
return (output);
Esa salida no me genera nada en ese direccion
Última edición por subero; 26/03/2008 a las 15:35 |