I got it to work using someone else's code I found here:
(defun ExtractFilesFromZip
(zipFileName Destination / File Filelist Folder Fso Index Items Path)
;;CodeHimBelonga kdub@theSwamp
;;
(setq filelist '()
Path (car (fnsplitl zipFileName))
Fso (vlax-create-object "Shell.Application")
Folder (vlax-invoke fso 'NameSpace zipFileName)
Items (vlax-invoke Folder 'Items)
Index 0
)
(repeat (vlax-get-property Items 'Count)
(setq File (vlax-invoke Items 'Item Index)
Filelist (append FileList (list (vlax-get-property File 'Name)))
Index (1+ Index)
)
)
(setq Folder (vlax-invoke Fso 'NameSpace Destination)
Index 0
)
(repeat (length FileList)
(vlax-invoke Folder
'CopyHere
(strcat zipFileName "\\" (nth Index FileList))
)
(setq Index (1+ Index))
)
(vlax-release-object Folder)
(vlax-release-object Items)
(vlax-release-object Fso)
Index
)
(princ)
Now, is there a way to extract files (txt) to temp folder? Basically I want to read from txt files from zip, by just selecting zip file. So I had in mind something like that, extract them to temp folder, or is it possible to extrct them, read from txt and then delete files, all that by lisp code?