Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
[Solved} [Abbrevia] Getting the filename of an extracted file
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
QuestionDlg does strange ...
by
SA.Blackmon
[
Today
at 03:41:21 pm]
LazReport
by
dseligo
[
Today
at 03:11:08 pm]
Duplicated icon in the Wi...
by
w click
[
Today
at 02:58:47 pm]
BAScript - Simple scripti...
by
Ñuño_Martínez
[
Today
at 02:39:20 pm]
[ANN] PasBuild 1.3.0 rele...
by
cdbc
[
Today
at 02:34:04 pm]
We are starting to use La...
by
gidesa
[
Today
at 02:27:56 pm]
[Solved] Help needed comp...
by
broutelichen
[
Today
at 01:51:53 pm]
SoundTracker Player Libra...
by
Gigatron
[
Today
at 01:35:38 pm]
Status of FPC 3.4.0 or FP...
by
Fred vS
[
Today
at 01:35:10 pm]
Delphi Magazine issues 1-...
by
cerdal
[
Today
at 01:05:49 pm]
How to start LAMW emulato...
by
RaketeMike
[
Today
at 12:16:26 pm]
lazarus information aand ...
by
LeP
[
Today
at 11:19:12 am]
Free Pascal for a small e...
by
dbannon
[
Today
at 10:36:13 am]
Howto : Double buffer wit...
by
biologic
[
Today
at 09:22:37 am]
How to determine the unkn...
by
LV
[
Today
at 08:28:40 am]
[ANN] fpGUI Toolkit v2.0....
by
Seenkao
[
Today
at 07:40:58 am]
My AGGPas examples
by
Graeme
[
Today
at 02:52:48 am]
Reporting a Bug? in Strin...
by
Bart
[
Today
at 01:48:34 am]
it2play - IT/S3M module r...
by
hukka
[
Today
at 12:47:05 am]
Reflection and Review in ...
by
jwdietrich
[February 14, 2026, 09:53:31 pm]
fpGUI Toolkit v2.0.1 has ...
by
cdbc
[February 14, 2026, 09:32:46 pm]
how to enable multihelper...
by
PascalDragon
[February 14, 2026, 06:30:05 pm]
Fast Canvas Library V1.05...
by
backprop
[February 14, 2026, 05:46:10 pm]
Are the source files for ...
by
Derz
[February 14, 2026, 05:12:27 pm]
Frustrating Error When us...
by
jamie
[February 14, 2026, 04:22:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved} [Abbrevia] Getting the filename of an extracted file (Read 3086 times)
heebiejeebies
Full Member
Posts: 143
[Solved} [Abbrevia] Getting the filename of an extracted file
«
on:
December 28, 2024, 03:12:13 am »
How do I get the filename of the file I've just extracted from a .zip using Abbrevia?
There should only ever be one file in the .zip, and it will be password protected, so I believe Abbrevia is my only option.
Thanks for your help.
«
Last Edit: December 28, 2024, 12:27:58 pm by heebiejeebies
»
Logged
Fedora 42 Cinnamon / FPC 3.3.1 / L 3.6.0
paweld
Hero Member
Posts: 1568
Re: [Abbrevia] Getting the filename of an extracted file
«
Reply #1 on:
December 28, 2024, 06:59:25 am »
Code: Pascal
[Select]
[+]
[-]
var
unZip
:
TAbUnZipper
;
i
:
Integer
;
begin
unZip
:
=
TAbUnZipper
.
Create
(
Self
)
;
unZip
.
FileName
:
=
'd:\archive.zip'
;
unZip
.
ArchiveType
:
=
atZip
;
unZip
.
ExtractOptions
:
=
[
eoCreateDirs
,
eoRestorePath
]
;
for
i
:
=
0
to
unZip
.
Count
-
1
do
begin
if
unZip
.
Items
[
i
]
.
IsDirectory
then
ShowMessage
(
'Directory: '
+
unZip
.
Items
[
i
]
.
FileName
)
else
ShowMessage
(
'File: '
+
unZip
.
Items
[
i
]
.
FileName
)
;
end
;
unZip
.
Free
;
end
;
Logged
Best regards / Pozdrawiam
paweld
heebiejeebies
Full Member
Posts: 143
Re: [Abbrevia] Getting the filename of an extracted file
«
Reply #2 on:
December 28, 2024, 12:27:32 pm »
Worked, thank you!
Logged
Fedora 42 Cinnamon / FPC 3.3.1 / L 3.6.0
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
[Solved} [Abbrevia] Getting the filename of an extracted file
TinyPortal
© 2005-2018