?
Solved

PKUNZIP  Shell

Posted on 1997-11-06
1
Medium Priority
?
547 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
anthonyc earned 210 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

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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