Solved

PKUNZIP  Shell

Posted on 1997-11-06
1
518 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

932 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