How can i read a rar file, using vbscript?

Posted on 2009-02-24
Last Modified: 2012-05-06
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
Question by:dandraka
    LVL 14

    Expert Comment

    Here are two links to look at - the first is the article discussing reading a rar file, the second is the active x control which is called from within the script.
    Active X control
    LVL 8

    Author Comment

    using this code i can read the contentes of a zip file:
    set myshell=createobject("")
    set filesys=createobject("scripting.filesystemobject")
    DESKTOP = myshell.specialFolders("DESKTOP")
    FILEPATH = DESKTOP & "\test\"
    Set objApp = CreateObject("Shell.Application")
    Set objContents = objApp.NameSpace(FILEPATH).Items()
    For Each objItem in objContents
        msgbox  objItem.Name
    i suppose that i cannot create a similar script for a rar file,
    without using an active x control
    am i right?
    LVL 14

    Accepted Solution

    That is right.  The zip technology was incorporated into Windows so scripts have access to the code.  Rar was written by another organization so we are stuck using tools like this Active X control.
    LVL 8

    Author Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
    When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now