Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2006-04-14
4
Medium Priority
?
465 Views
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 alt.binaries.w.ibm-pc.0-day 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.
0
Comment
Question by:asgarcymed
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Bob Lamberson
ID: 16453665
asgarcymed,
Check out this site for the zip part of your question...
http://www.codeguru.com/vb/gen/vb_graphics/fileformats/article.php/c6743/

Here is info on code for dlls that work with rar files
http://www.rarlab.com/rar_add.htm
http://www.nirsoft.net/freeware_links.html
Bob
0
 

Author Comment

by:asgarcymed
ID: 16453813
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 !).
0
 
LVL 12

Accepted Solution

by:
Bob Lamberson earned 1020 total points
ID: 16454775
asgarcymed,
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.
Bob
0
 

Author Comment

by:asgarcymed
ID: 16459684
BobLamberson - thank you for the advices !
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

571 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