JAR Archive

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hy everyone

Is there a way to read from VBA the content of a JAR archive. To be more
specific, the archive contain a txt file so if i want to read the file, i
need to extract the archive, read the txt, and then create it again. The
problem is that i have to do this manually, so i was wodering if could read
some code for this to work.
 
Alex Dybenko said:
Hi,
you can try to unpack file using standart JAR archive program, for example
use this code:
http://maug.pointltd.com/access/Queries/TipDetail.asp?TipID=9

to run JAR exe (whatever it called) and unpack file to temp folder, then
read text file using VBA or transfer text, and then delete file

--
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com




thank you Alex Dybenko,
but i forgot to say what is more important and that is i need to unpack
and pack between 500 and 1000 jar archives so i can't do this manually.
 
but i forgot to say what is more important and that is i need to unpack
and pack between 500 and 1000 jar archives so i can't do this manually.
that is why i suggested metioned code - you can use Dir to loop through all
files, uppack each file, and import it,
then next file, etc
 
Back
Top