我也用过压缩,不过那VCLZIP我是怎么也没看懂,就把个DOS下用的RAR给找来了,通过shellexecute来调用,反正任务是完成了,用户也没觉得不好,吼吼。
备份: ShellExecute(0,nil,PChar(ExtractFilePath(Application.ExeName)+'rar/rar.exe'),PChar('a -o+ '+BackupPath+'/'+BackFile+' '+ExtractFilePath(Application.ExeName)+'data/*.*'),PChar(ExtractFilePath(Application.ExeName)),SW_Minimize);
恢复:ShellExecute(0,nil,PChar(ExtractFilePath(Application.ExeName)+'rar/rar.exe'),PChar('x -o+ '+BackFile+' *.* c:/'),PChar(ExtractFilePath(Application.ExeName)),SW_Minimize);