Ver Mensaje Individual
  #2  
Antiguo 15-05-2008
JuanErasmo JuanErasmo is offline
Miembro
 
Registrado: ago 2005
Posts: 544
Reputación: 19
JuanErasmo Va por buen camino
Solucionado amigos Gracias

Código:
string PathAbrir = @"""C:\Archivos de Programa\Fotos\temporal.jpg""";
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo myProcessStartInfo = new System.Diagnostics.ProcessStartInfo("C:\\WINDOWS\\system32\\mspaint.exe");

myProcessStartInfo.UseShellExecute = false;
myProcessStartInfo.Arguments = PathAbrir;
myProcess.StartInfo = myProcessStartInfo;
myProcess.Start();
myProcess.WaitForExit();

myProcess.Close();
Se soluciona poniendo @"" C:\ruta con espacios\espacio\foto 1.jpg""

que caprichos no???

Gracias amigos
Responder Con Cita