Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MyUnZip.cpp
Package: MyUnZip.rar [view]
Upload User: hzweiye
Upload Date: 2022-05-26
Package Size: 4688k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- // MyUnZip.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "MyUnZip.h"
- #include "InfoZip\InfoZip.h"
- //////////////////
- int main(int argc, char* argv[])
- {
- // char pszCurrentDir[MAX_PATH+1],pszArchive[MAX_PATH+1],pszTargetFolder[MAX_PATH+1];
- CInfoZip InfoZip;
- if(argc<3)
- {
- printf("USAGE:%s zipfile unzippath",argv[0]);
- return 0;
- }
- if(access(argv[1],0)!=0)
- {
- printf("文件不存在(%s)",argv[1]);
- return 0;
- }
- if(access(argv[2],0)!=0)
- {
- if(!CreateDirectory(argv[2],NULL))
- {
- printf("创建文件输出目录失败(%s)",argv[2]);
- return 0;
- }
- }
- if (!InfoZip.InitializeUnzip())
- {
- printf("Must be initialized");
- return 0;
- }
- if (!InfoZip.ExtractFiles(argv[1],argv[2]))
- {
- printf("Files not added");
- return 0;
- }
- if (!InfoZip.FinalizeUnzip())
- {
- printf("Cannot finalize");
- return 0;
- }
- printf("完成解压!");
- return 0;
- }