0
I would like to know if there is the possibility of the following scenario being done in Delhpi:
I have a briefcase and inside it I have the following structure:
foto.jpg
foto.png
imagem.jpg
imagem.png
is it possible to zip, by name? so... zip only the files that contain the same name...:
foto.zip -> contem -> foto.jpg e foto.png
imagem.zip -> contem -> imagem.jpg e imagem.png
I do not want a ready answer, but rather the ability to do this in Delphi, remembering that the files I may not know their name.
Especially, only one question... instead of vDirectory+'*. * accept every type of file...it would be possible to accept only one type? for example only png and jpg.. I tried to pass .jpg|.png.. but he does not recognize.
– Guilherme Lima
I did a test here and it doesn’t really let pass more than one extension in findfirst, an option would be inside the repeat of the file search using the Extractfileext function passing as parameter the searchResult.Name, so you can know the file extension and make the tractive you want.
– Confundir