Jump to content


Photo

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


  • Please log in to reply
No replies to this topic

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 posts
  • Location127.0.0.1

Posted 10 December 2016 - 04:29 PM

[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.