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
Which Control should I us...
by
cdbc
[
Today
at 03:10:54 pm]
docked IDE and form capti...
by
Paolo
[
Today
at 02:53:50 pm]
New version of LazMapView...
by
wp
[
Today
at 12:09:27 pm]
Very rough version of a s...
by
Hansvb
[
Today
at 11:48:04 am]
Single and Double, Conver...
by
kupferstecher
[
Today
at 11:08:22 am]
PadXml 1.1.0 – Portable A...
by
AlexanderT
[
Today
at 10:38:42 am]
Arkanoid
by
Tomi
[
Today
at 09:46:46 am]
SynEdit theme
by
Martin_fr
[
Today
at 08:15:21 am]
Interesting video
by
Joanna
[
Today
at 06:24:53 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[
Today
at 03:49:17 am]
Message CM_ShowingChanged...
by
LeP
[
Today
at 02:13:51 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 01:48:44 am]
[SOLVED]Program experienc...
by
Cainnech
[
Today
at 12:19:17 am]
TATTabs - how to stop a 3...
by
bobonwhidbey
[
Today
at 12:03:15 am]
If FileExists(
by
Bart
[June 12, 2026, 10:39:03 pm]
If you are looking for Wi...
by
avra
[June 12, 2026, 07:37:10 pm]
Can /my/ AI help me with ...
by
microxa
[June 12, 2026, 04:26:18 pm]
Lazarus Bugfix Release 4....
by
Martin_fr
[June 12, 2026, 03:57:39 pm]
Testing with 3.2.4 prepar...
by
Martin_fr
[June 12, 2026, 03:50:17 pm]
TDWEdit
by
Ed78z
[June 12, 2026, 10:20:58 am]
Strange Behaviour at Runt...
by
andrew Bubble
[June 12, 2026, 09:54:40 am]
FPC Debug mode releases [...
by
Martin_fr
[June 12, 2026, 09:22:25 am]
Implementing an Elo ratin...
by
paule32
[June 12, 2026, 08:43:20 am]
Death of the Power User
by
wp
[June 12, 2026, 01:29:18 am]
how to add a ForEach call...
by
mas steindorff
[June 11, 2026, 11:42:24 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved} [Abbrevia] Getting the filename of an extracted file (Read 3164 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: 1641
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