Sign in to follow this  
Followers 0
mLipok

making archive

2 posts in this topic

how to make a archive only with WinXP and Autoit

without any special program like WinZip WinRar ....

only using standard WinXP instalation and Autoit

this can be a zip or cab


NEW:     ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2016-11-12
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft Components * TeamViewer API -UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, The Art of Computer Programming
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

how to make a archive only with WinXP and Autoit

without any special program like WinZip WinRar ....

only using standard WinXP instalation and Autoit

this can be a zip or cab

Hi & welcome,

maybe something like this.

; ----------------------------------------------------------------------------
; Author:        mozart90 + Thorsten Meger
; Script Function: Easy Zip compression under Win XP
; ----------------------------------------------------------------------------

Func zipTXT()
    $oShell = ObjCreate("Shell.Application")         ; Create s shell Object
    $ZipAchive = @ScriptDir & "\" & 'TM_PCInfo2.0.zip'
    If IsObj($oShell) Then
        initZip($ZipAchive)                       ; Create an emtpy zip file with header
        $oDir = $oShell.NameSpace ($ZipAchive)  ; Use the zip file as an "Folder"
        For $i = 10 To 1 Step - 1
            $oDir.CopyHere ($avArray[$i])           ; Copy the 10 files in the "Zip Folder"
        Next
        Sleep(700)                              ; Give the Objekt a litte bit time to work
    Else
        MsgBox(0, "Error", "Error creating Object.")
    EndIf
EndFunc ;==>zipTXT

Func initZip($zip_path_name)
    $init_zipString = Chr(80) & Chr(75) & Chr(5) & Chr(6) ; Create the Header String
    For $n = 1 To 18
        $init_zipString = $init_zipString & Chr(0)      ; the Header
    Next
    $file = FileOpen($zip_path_name, 2)
    FileWrite($file, $init_zipString)                    ; Write the string in a file
    FileClose($file)
EndFunc ;==>initZip

Have a look at : http://www.autoitscript.com/forum/index.ph...ndpost&p=146133

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0