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
[Bug] asDateTime conversi...
by
paweld
[
Today
at 11:29:25 am]
Question re. FCL's ssocke...
by
tetrastes
[
Today
at 10:48:13 am]
Lazarus increase process ...
by
dbannon
[
Today
at 10:06:49 am]
Is Lazarus' Tool Palette ...
by
Ally
[
Today
at 09:22:06 am]
fpcupdeluxe - 32bit or 64...
by
d2010
[
Today
at 09:00:21 am]
Error: Enumeration symbol...
by
daniel_sap
[
Today
at 08:45:41 am]
Where are you from?
by
egsuh
[
Today
at 08:39:43 am]
[Solved] Command-line arg...
by
AlexTP
[
Today
at 07:55:42 am]
Lazarus portable
by
d2010
[
Today
at 07:26:58 am]
Status of Missile Command...
by
TBMan
[
Today
at 04:36:47 am]
Why is there no Chinese s...
by
Handoko
[
Today
at 03:41:21 am]
New version of LazMapView...
by
wp
[
Today
at 12:26:03 am]
Is FPGUI still active?
by
cdbc
[December 16, 2025, 08:06:30 pm]
connecting to mariadb
by
alanyoung
[December 16, 2025, 04:36:09 pm]
Lazarus Trunc & macOS Tah...
by
madref
[December 16, 2025, 04:24:54 pm]
[hacked for now] Changing...
by
jamie
[December 16, 2025, 02:57:58 pm]
Why does the call via fun...
by
Warfley
[December 16, 2025, 02:17:38 pm]
About the Class View
by
wp
[December 16, 2025, 01:58:25 pm]
Hint on axis marks
by
wp
[December 16, 2025, 01:35:13 pm]
Lazarus is not working
by
Fred vS
[December 16, 2025, 01:22:23 pm]
TLazSerial : serial port ...
by
CM630
[December 16, 2025, 12:24:27 pm]
Qt6 / X11: problem with G...
by
dbannon
[December 16, 2025, 10:51:56 am]
Does FreePascal have a WM...
by
CM630
[December 15, 2025, 11:20:24 pm]
AVRPascal – free code edi...
by
ackarwow
[December 15, 2025, 10:40:17 pm]
delete cookies
by
Leledumbo
[December 15, 2025, 05:14:27 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved} [Abbrevia] Getting the filename of an extracted file (Read 3051 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: 1529
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