Unzip and Unrar in automatic and repetitive way using a vbs script

Posted on 2006-04-14
Last Modified: 2008-01-16
I will post a question that you may think it is crazy, but if you are a regular user of usenet's news group then you will understand the reason of my question. However it doesn't matter if you know what I am talking or not; just understand the following - I have a main folder which has many subfolders; each subfolder contains one or more zip files; such zip files when unzipped will extract a rar file; such rar file has the final files I want to access. How can I automate the unzipping and unraring processes ? I do not know to program (I am beginning to learn Visual Basic Script) but I guess that a "magical" vbs script can do it... I am correct ? Thanks in advance.
Question by:asgarcymed
    LVL 12

    Expert Comment

    Check out this site for the zip part of your question...

    Here is info on code for dlls that work with rar files

    Author Comment

    BobLamberson - the links you said seems to be good but I am a beginner yet :( Now I am beginning to learn Visual Basic Script (I only know something about QBasic). So I don't know, yet, to use dll (call a dll from an exe file) :( By the way, if you want to comment what is the best sequence to learn to program, please suggest it... I would like to learn a lot about programming (I think it is fascinating !).
    LVL 12

    Accepted Solution

    Good that you are interested in programming. A good way to get into it is to Google or search the web for tutorials for your chosen language. There are many and you will probably look at a few before finding the right one for you.

    I like to get the books, Microsoft has many they call training kits, and have learned most of my programming by reading them and practicing the exercises in them.

    As for DLL files, they are Dynamic Link Libraries and contain functions that do specific processes. You would call the functions from within your program code to execute a given process.

    To "install" a DLL is easily done by copying it to your c:\windows\system32 directory (or any directory in your path) and registering it. To register it you would click on Start, then click on Run, then type in regsvr32 c:\windows\system32\somename.dll and click run. Now your program will be able to find the functions in the dll.

    Try to start writing some code, simple at first, and post questions with short code examples here and someone will help you.

    Author Comment

    BobLamberson - thank you for the advices !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    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

    13 Experts available now in Live!

    Get 1:1 Help Now