Ver Mensaje Individual
  #2  
Antiguo 14-10-2014
Avatar de Casimiro Notevi
Casimiro Notevi Casimiro Notevi is offline
Moderador
 
Registrado: sep 2004
Ubicación: En algún lugar.
Posts: 32.056
Reputación: 10
Casimiro Notevi Tiene un aura espectacularCasimiro Notevi Tiene un aura espectacular
Hace años que no uso esto, pero en la documentación pone lo siguiente:

Cita:
How to Use and Store Relative Paths

1) Set the AddOptions to AddRecurseDirs and AddDirNames:
Código Delphi [-]
with ZipMaster1 do
AddOptions := AddOptions + [AddRecurseDirs, AddDirNames];
2) Add a file specification like *.* or *.pas or something like this:
Código Delphi [-]
ZipMaster1.FSpecArgs.Append( '*.*' );
3) Set the RootDir property to the desired base directory, Drive and Directory where the relative path should start.
Código Delphi [-]
ZipMaster1.RootDir :='C:\aBaseDir\AnotherBaseDir';
4) Now do an Add, and you should have the desired result. The Drive ID and Dirname of your base directory will not be stored in the archive.
Código Delphi [-]
ZipMaster1.Add;
NOTE: The reason that demo1 saves whole pathnames is because it's GUI design intentionally stores complete pathnames in the FSpecArgs.

Última edición por Casimiro Notevi fecha: 14-10-2014 a las 13:46:11.
Responder Con Cita