dandraka
asked on
How can i read a rar file, using vbscript?
I have a rar file and i want to read file's content,
i know how i can read a zip file but i cannot do the same to a rar file
TIA
i know how i can read a zip file but i cannot do the same to a rar file
TIA
ASKER
using this code i can read the contentes of a zip file:
'************************* ********** ********** ********** ********** **********
set myshell=createobject("wscr ipt.shell" )
set filesys=createobject("scri pting.file systemobje ct")
DESKTOP = myshell.specialFolders("DE SKTOP")
FILEPATH = DESKTOP & "\test\mytest.zip"
contents=atesinfo.ReadFile sInZip(fil epath)
Set objApp = CreateObject("Shell.Applic ation")
Set objContents = objApp.NameSpace(FILEPATH) .Items()
For Each objItem in objContents
msgbox objItem.Name
Next
'************************* ********** ********** ********** ********** **********
i suppose that i cannot create a similar script for a rar file,
without using an active x control
am i right?
TIA
'*************************
set myshell=createobject("wscr
set filesys=createobject("scri
DESKTOP = myshell.specialFolders("DE
FILEPATH = DESKTOP & "\test\mytest.zip"
contents=atesinfo.ReadFile
Set objApp = CreateObject("Shell.Applic
Set objContents = objApp.NameSpace(FILEPATH)
For Each objItem in objContents
msgbox objItem.Name
Next
'*************************
i suppose that i cannot create a similar script for a rar file,
without using an active x control
am i right?
TIA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!
Article
http://www.example-code.com/vbscript/rar_list.asp
Active X control
http://www.chilkatsoft.com/download/ZipActiveX.msi