DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Extract files to path of original file!

  1. #1
    Join Date
    Apr 2005
    Location
    South Africa
    Posts
    88

    Question Extract files to path of original file!

    If I open say a zip file within my application and the name of the zip file is "test" Then I click on my extract button in my app! How can the files be extracted automatically into a folder named like the zip file "test", where this folder is being created in the directory of the original zip file!
    Hope you understand what I'm trying to say!
    Any help would be appreciated!
    Thanks
    regards
    GermanD
    deonmeyer@gmail.com
    ** <<]db[>> **
    *** G.s.G Crew ***

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    how do you unzip the file in your code?
    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    Apr 2005
    Location
    South Africa
    Posts
    88
    Sorry, I'm not really unzipping a file it a program that extracts images from powerpoint file through Visual basic 6! I use a common dialog to open the file, then the file is being listen on a ListView, then I click on extract, then the pictures have to be extracted to the same folder where the original powerpoint file is by creating a folder named like the powerpoint file (in the directory where the powerpoint file is)
    Does this make any sense?
    Everything works fine, extracting I mean, it only extracts to the C:/ though!
    Thanks!
    GermanD
    deonmeyer@gmail.com
    ** <<]db[>> **
    *** G.s.G Crew ***

  4. #4
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    well, then the problem is in the program that you use. look if there is an option to specify the output folder. if not, try to set the current folder before running that program, using ChDir. If everything fails, wait until the program ends, and move th eextracted images using the Name statement
    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Similar Threads

  1. Getting the Program Files path
    By James Brown in forum VB Classic
    Replies: 6
    Last Post: 12-20-2007, 03:14 PM
  2. Database not properly created
    By Arjuna in forum Database
    Replies: 2
    Last Post: 07-25-2007, 03:22 AM
  3. Test a file to see if it's open
    By JohnN in forum VB Classic
    Replies: 12
    Last Post: 05-08-2001, 04:25 PM
  4. Replies: 2
    Last Post: 12-27-2000, 05:22 AM
  5. How to generate Make Files?
    By aMax in forum Java
    Replies: 2
    Last Post: 08-04-2000, 05:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center