Comprimir Varios Archivos Y Directorios


Subject: Comprimir Varios Archivos Y Directorios
Hola a todos.
Estoy intentando generar un archivo .zip con el contenido de un directorio en el que hay archivos y mas directorios, pero no lo consigo.
Estoy usando este código

Dim z As New Compress
Dim f As String

For Each f In ["/home/file1.txt", "/home/file2.txt", "/home/fileN.txt"]
With z
.Type = "zlib"
.File(f, User.Home &/ "tmp.zip", z.Max)
End With
Next


Antes usaba un script bash pero me gustaría poder hacerlo con gambas sin tener que recurrir a la terminal.
Gracias
Saludo.

Profile PM  
Subject: Re: Comprimir Varios Archivos Y Directorios
Uhmmm... no se si es posible , ya que la guía dice que " If that file already exists, it will be overwritten."

Profile PM  
Subject: Re: Comprimir Varios Archivos Y Directorios
vuott escribió:  
Uhmmm... no se si es posible , ya que la guía dice que " If that file already exists, it will be overwritten."


Bueno, hace un momento comente esto en el bugtracker a ver si es posible ampliar este componente.
Saludos.

Last edited by tincho on Thursday, 16 April 2020, 11:47; edited 1 time in total
Profile PM  
Subject: Re: Comprimir Varios Archivos Y Directorios
tincho escribió:  
hace un momento comente esto en el bugtracker a ver si es posible ampliar este componente.

Ok, si no podrás usar... los recursos del la función externa Libzip:

https://www.gambas-it.org/wiki/inde...l_API_di_libzip


saludos

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Generation Time: 0.1031s (PHP: -35% SQL: 135%)
SQL queries: 24 - Debug Off - GZIP Enabled