ผู้เขียน หัวข้อ: TSevenZip  (อ่าน 7925 ครั้ง)

0 สมาชิก และ 2 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ ittipol

  • Hero Member
  • *****
  • กระทู้: 841
  • ขอตั้งใจและมั่นใจในสิ่งที่ทำ
  • Respect: +4
    • ดูรายละเอียด
    • www.thungchanghospital.com
TSevenZip
« เมื่อ: กุมภาพันธ์ 18, 2013, 09:44:51 AM »
0
อาจารย์ครับ
TSevenZip คือ อะไรครับ
ขอคำแนะนำด้วยครับ
ขอบคุณครับ
Thungchang Hospital NAN
ward 30 bedno computer 50 client
Endien Firewall+Ip cop
mysql 5.0.51
P4 2.4G DDR 2 GB
HDD 80G 7200
HOsxP 3.52.10.5
HOSxP_PCU 3.52.10.5
ขึ้นระบบ 01-10-2548

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: TSevenZip
« ตอบกลับ #1 เมื่อ: กุมภาพันธ์ 19, 2013, 07:57:55 AM »
0
ึ7Z ไงครับ เป็น Utility ที่บีบอัดข้อมูลครับ
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ apisak

  • Full Member
  • ***
  • กระทู้: 204
  • Respect: 0
    • ดูรายละเอียด
    • โรงพยาบาลสวนผึ้ง
Re: TSevenZip
« ตอบกลับ #2 เมื่อ: กุมภาพันธ์ 19, 2013, 08:28:34 AM »
0
ึ7Z ไงครับ เป็น Utility ที่บีบอัดข้อมูลครับ
อาจารย์ครับ ใช้คำสั่ง 7zip Command ตามนนี้ได้ใช่เปล่าครับ http://www.dotnetperls.com/7-zip-examples

cd:\7-zip\
7z e -so D:\hosxp.7z | D:\mysql\bin\mysql -u root -pxxx db_hosxp 
สามารถใช้งานแบบนี้ใช่เปล่าครับ
รบกวนอาจารย์แสดงตัวอย่าง event on คลิก ให้ดูได้เปล่าครับ
HP ProLiant ML3306 G6

Ram 32 pg
โรงพยาบาลสวนผึ้ง จังหวัดราชบุรี
ขึ้นระบบ 2553
FreeBSD8.2
MySQL5.5.20

ออฟไลน์ ittipol

  • Hero Member
  • *****
  • กระทู้: 841
  • ขอตั้งใจและมั่นใจในสิ่งที่ทำ
  • Respect: +4
    • ดูรายละเอียด
    • www.thungchanghospital.com
Re: TSevenZip
« ตอบกลับ #3 เมื่อ: กุมภาพันธ์ 27, 2013, 15:07:48 PM »
0
TSevenZip
หาได้จากไหนครับแนะนำหน่อยครับ
Thungchang Hospital NAN
ward 30 bedno computer 50 client
Endien Firewall+Ip cop
mysql 5.0.51
P4 2.4G DDR 2 GB
HDD 80G 7200
HOsxP 3.52.10.5
HOSxP_PCU 3.52.10.5
ขึ้นระบบ 01-10-2548

ออฟไลน์ ittipol

  • Hero Member
  • *****
  • กระทู้: 841
  • ขอตั้งใจและมั่นใจในสิ่งที่ทำ
  • Respect: +4
    • ดูรายละเอียด
    • www.thungchanghospital.com
Re: TSevenZip
« ตอบกลับ #4 เมื่อ: กุมภาพันธ์ 27, 2013, 15:54:07 PM »
0
อาจารย์ครับช่วยแนะนำการติดตั้ง
SevenZipVCL บน delphi xe
หน่อยครับ ขอบคุณครับ
Thungchang Hospital NAN
ward 30 bedno computer 50 client
Endien Firewall+Ip cop
mysql 5.0.51
P4 2.4G DDR 2 GB
HDD 80G 7200
HOsxP 3.52.10.5
HOSxP_PCU 3.52.10.5
ขึ้นระบบ 01-10-2548

ออฟไลน์ apisak

  • Full Member
  • ***
  • กระทู้: 204
  • Respect: 0
    • ดูรายละเอียด
    • โรงพยาบาลสวนผึ้ง
Re: TSevenZip
« ตอบกลับ #5 เมื่อ: มีนาคม 04, 2013, 10:10:06 AM »
0
อาจารย์ครับ
TSevenZip คือ อะไรครับ
ขอคำแนะนำด้วยครับ
ขอบคุณครับ
ไม่ทราบว่าใช่เปล่านะครับ ให้ลองดูครับ
http://www.componentace.com/extract-file-from-zip-in-delphi.htm
//zip file
      begin
      //
          archiver := TZipForge.Create(nil);
            try
                  with archiver do
                          begin
                            // Set the name of the archive file we want to create
                            FileName := 'C:\test.zip';
                            // Because we create a new archive,
                            // we set Mode to fmCreate
                            OpenArchive(fmCreate);
                            // Set base (default) directory for all archive operations
                            BaseDir := 'C:\';
                            // Add the c:\Test folder to the archive with all subfolders
                            AddFiles('C:\Test\*.*');
                            CloseArchive();
                          end;
                                    except
                              on E: Exception do
                                begin
                                  Writeln('Exception: ', E.Message);
                                  // Wait for the key to be pressed
                                  Readln;
                                end;
          //
          end;

      end;
//unzip
begin
            begin
              // Create an instance of the TZipForge class
              archiver := TZipForge.Create(nil);
              try
              with archiver do
                        begin
                          // The name of the ZIP file to unzip
                          FileName := 'C:\test.zip';
                          // Open an existing archive
                          OpenArchive(fmOpenRead);
                          // Set base (default) directory for all archive operations
                          BaseDir := 'C:\temp';
                          // Extract all files from the archive to C:\Temp folder
                          ExtractFiles('*.*');
                          CloseArchive();
                        end;
              except
              on E: Exception do
                        begin
                          Writeln('Exception: ', E.Message);
                          // Wait for the key to be pressed
                          Readln;
                        end;
              end;
    end;
end;
HP ProLiant ML3306 G6

Ram 32 pg
โรงพยาบาลสวนผึ้ง จังหวัดราชบุรี
ขึ้นระบบ 2553
FreeBSD8.2
MySQL5.5.20