Ver Mensaje Individual
  #6  
Antiguo 04-10-2005
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Que si funciona hombre, no desesperes.

Si una ruta tiene espacios en blanco, y/o bien es más larga de 8 caracteres, tienes que meterla entre dobles comillas.

Si no estas en windows equispé o 2000 entonces no esperes que funcione

Código Delphi [-]
ShellExecute(Form1.Handle,
      nil, 
      PChar('"C:\Documents and Settings\....\zsnesw.exe"',
      Pchar('"rom.smc"'),
      PChar('"C:\Documents and Settings\...\"'),
      SW_SHOWNORMAL);
Eso debe funcionar, y si no:
Código Delphi [-]
ShellExecute(Form1.Handle,
      Pchar('open'), 
      PChar('"C:\Documents and Settings\....\zsnesw.exe"',
      Pchar('"rom.smc"'),
      PChar('"C:\Documents and Settings\...\"'),
      SW_SHOWNORMAL);

Un saludo
Responder Con Cita