Solved

PKUNZIP  Shell

Posted on 1997-11-06
1
523 Views
Last Modified: 2008-03-17
Hi
I am using this for unzipping, but am having a prob.
It unzips ok, but in the VB5 main directory, though the file3.path is another.
How can I control the destination directory??
The code goes here;

      filnavn = File3.Filename
      f = FreeFile
          Open filnavn For Random As f
       c = Shell("pkunzip.exe " & File3.Path & "\" & filnavn, vbHide)


'Jacob.
0
Comment
Question by:CATT
1 Comment
 
LVL 6

Accepted Solution

by:
anthonyc earned 70 total points
ID: 1440063
pkunzip syntax is:

pkunzip.exe [flags] zipfile [output path]

If the output path is not there, it sends the files to the current path, which is the vb5 main dir.  To cure this:

c = shell("pkunzip.exe " & file3.path & "\" & fillnavn & " " & file3.path, vbHide)


On anothe rnote, why did you open the zip file for random access?   you dont need to do that unless you intend on reading the zip file directly
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
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…

803 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