Ir al contenido


Foto

[TRUCO DELPHI] Traer el Nombre de una Carpeta Temporal.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 10 diciembre 2016 - 04:29

[TRUCO DELPHI] Carpeta Temporal.


delphi
  1. function GetTempDirectory: String;
  2. Var
  3. sTempPath: String;
  4. iLen : Integer;
  5. begin
  6. SetLength(sTempPath, 255);
  7. iLen := GetTempPath(255, PChar(sTempPath));
  8. SetLength(sTempPath, iLen);
  9.  
  10. Result := sTempPath;
  11. end;

Saludos!


  • 1




IP.Board spam blocked by CleanTalk.