Need to extract files from a ZIP file programmatically using VBScript 
Author Message
 Need to extract files from a ZIP file programmatically using VBScript

I need to extract selected files from a ZIP file programmatically
using VBScript running in ASP (Active Server Pages) environment. If it
is not possible to extract selected files it would be Ok if I would
extract all compressed files.

It seems like a common task, but I can't find any references or sample
code. I will very much appreciate any insights. Thank you.

Misha



Sun, 13 Mar 2005 06:14:17 GMT  
 Need to extract files from a ZIP file programmatically using VBScript

Quote:

> I need to extract selected files from a ZIP file programmatically
> using VBScript running in ASP (Active Server Pages) environment. If it
> is not possible to extract selected files it would be Ok if I would
> extract all compressed files.

> It seems like a common task, but I can't find any references or sample
> code. I will very much appreciate any insights. Thank you.

> Misha


I have done this using the wscript.shell object's .run method and
passing it a command string to invoke pkzip25.exe or you can use
winzip8.0 if you have the command line extensions intalled.

dim shell
set shell = createobject("wscript.shell")
cmdstr = "pkzip25" & " -extract" & " myfile.zip"
test = shell.run (cmdstr, 0, true)

if test = 0 then
  wscript.echo "success"
end if

Paul Bruno



Mon, 14 Mar 2005 00:34:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Need help tring to zip files using a script

2. Extract zip file with current time

3. CGI32.ZIP Using VB to write CGI files - cgi32.zip (1/1)

4. Reading files from a zip file (Just reading the filenames, not unzipping or zipping)

5. Self Extract a Zip file

6. Q. Creating Self Extracting Zip Files

7. How to extract a Zip file by Vb6.0

8. Extracting ZIP-files with use of zlib.dll?

9. Extract a zip file From VB

10. Extracting *.zip files

11. DAO Blob Adding/Extracting (audio files, text files, image files, program files)

12. How to extract a file including folder using setup.lst from xxx.cab file

 

 
Powered by phpBB® Forum Software