how to unzip files without any support code
- From: "Tech Support" <help@xxxxxxxxxxxxxxxxx>
- Date: 28 Feb 2006 12:15:21 -0800
//Tested with Delphi 6 on WinME
uses COMObj;
procedure unzip;
var shell, srcfolder, destfolder, items: OleVariant;
begin
shell := CreateOleObject('Shell.Application') ;
srcfolder := shell.namespace('d:\file.zip'); // the path to the .zip
file
destfolder := shell.namespace('c:\'); // destination of unzipped files
items := srcfolder.items; // get list of file.zip contents
destfolder.copyhere(items); // unzips everything in file.zip to c drive
end;
// search the net for "shell copyhere" for more details
.
- Follow-Ups:
- Re: how to unzip files without any support code
- From: Nicholas Sherlock
- Re: how to unzip files without any support code
- Prev by Date: Re: How can one distinguish between XP Home and Pro?
- Next by Date: Re: how to unzip files without any support code
- Previous by thread: How can one distinguish between XP Home and Pro?
- Next by thread: Re: how to unzip files without any support code
- Index(es):