GENERATED: JUL 19,2019 - 1:36PM
BulkShrinkFiles/BulkGrowFiles [V10.19.07]

Previous Page

This application uses the generic template EmbedDiskFunctions to attach a class called HNDDISK to your application procedures. The application illustrates the use of two HNDDISK functions:
OBJ.BulkShrinkFiles() -> OBJ.ShrinkFile()
OBJ.BulkGrowFiles() -> OBJ.GrowFile()

The HNDDISK Class provides several different Compression and Decompression methods including memory and file compression and decompression as well as ZIP compression and decompression.

The SHRINK and GROW functions provide CHT proprietary file compression and decompression capabilities that are pure Clarion code using internal Clarion functions created for that purpose.

During SHRINK, the target file is read into a memory buffer, the memory buffer is compressed in-memory (by Clarion's COMPRESS function) and then written to disk as binary bytes.

During GROW, the target file is read into a memory buffer, the memory buffer is decompressed in-memory (by Clarions DECOMPRESS function) and then written to disk as binary bytes.

The SHRINK version of a file is given the extension .HNZ, and the original file name and extension ae retained inside a file header embedded in the .HNZ file. Hence, the GrowFile() function is able to re-establish a fully expanded version of the original file including the file extension.

SHRINK and GROW are also optionally encryption capable. When encryption is enabled, the compressed file is given the extension .HZY.

CHT proprietary compression and encryption provided by these functions are extremely useful for secure file transport via email, FTP and HTTP since the decompression phase can only be performed by another CHT application that is made aware of the encryption password or by a CHT Clarion procedure built into your CHT email application, CHT FTP application or CHT Web Server.

See also HNDCPYDM.APP for more examples including file encryption.

Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 CHT AACHTControlPanel - CHT Global Control Panel.
(0002) ApplicationImagesEx(HNDTools) 1 CHT ApplicationImagesEx - Application Styling System
(0003) HNDCMPControlPanel(HNDTools) 1 CHT HNDCMPControlPanel - Interface to the CHT Compile Manager.
(0004) HandyVersionResource(HNDTools) 1 CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(0005) INIFile(HNDTools) 1 CHT INIFile - .INI FIle and Registry extension classes - HNDIni - globally to your application.
(5) Global Templates Found

1 - Procedure Template Type: Window
GrowFiles ()
Count Local Template Name Qty Local Template Description
(0006) EmbedDiskFunctions(HNDTools) 1 CHT EmbedDiskFunctions - Disk Functions Classes - An Instance Of:
(0007) EmbedWindowFunctions(HNDTools) 1 CHT EmbedWindowFunctions - An Instance Of:
(0008) HandyApplicationIniFetch(HNDTools) 3 CHT HandyApplicationIniFetch - Embed a fetch from the Application INI file or Windows registry.(15)
(0009) HandyApplicationIniPut(HNDTools) 3 CHT HandyApplicationIniPut - Embed a PUT to the Application INI file or Windows registry.(9)
(0010) PostControlEvent(HNDTools) 1 CHT Post an event to a control in a local window(6)
(0011) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(6) Local Templates Found In GrowFiles

2 - Procedure Template Type: Frame
Main ()
Count Local Template Name Qty Local Template Description
(0012) AppStartSplashProcedure(HNDTools) 1 CHT AppStartSplashProcedure - Application Splash screen earlier with an option for threaded/unthreaded.
(0013) DateTimeDisplay(ABC) 1 Display the date and/or time in the current window
(0014) EmbedWindowFunctions(HNDTools) 1 CHT EmbedWindowFunctions - An Instance Of:
(0015) HandyHelpFileFetch(HNDTools) 2 CHT HandyHelpFileFetch - Build A Help File Request To Your Website.(6)
(0016) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(5) Local Templates Found In Main

3 - Procedure Template Type: Splash
JumpStartSplash07 ()
Count Local Template Name Qty Local Template Description
(0017) AppBuildDateTimeStamp(HNDTools) 1 CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0018) AppBuildNumberStamp(HNDTools) 1 CHT AppBuildNumberStamp - An application build number or version stamp.
(0019) AppCopyRightStamp(HNDTools) 1 CHT AppCopyRightStamp - An application copyright stamp.
(0020) HandyTellMeControl(HNDTools) 1 CHT HandyTellMeControl - Text box control to provide a message or help text.
(0021) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(5) Local Templates Found In JumpStartSplash07

4 - Procedure Template Type: Window
ShrinkFiles ()
Count Local Template Name Qty Local Template Description
(0022) EmbedDiskFunctions(HNDTools) 1 CHT EmbedDiskFunctions - Disk Functions Classes - An Instance Of:
(0023) EmbedWindowFunctions(HNDTools) 1 CHT EmbedWindowFunctions - An Instance Of:
(0024) HandyApplicationIniFetch(HNDTools) 3 CHT HandyApplicationIniFetch - Embed a fetch from the Application INI file or Windows registry.(15)
(0025) HandyApplicationIniPut(HNDTools) 3 CHT HandyApplicationIniPut - Embed a PUT to the Application INI file or Windows registry.(17)
(0026) PostControlEvent(HNDTools) 1 CHT Post an event to a control in a local window(6)
(0027) ProcedureImagesEx(HNDTools) 1 CHT ProcedureImagesEx - Application Styling System
(6) Local Templates Found In ShrinkFiles

Copyright © 1996-2019 - CHT Version: [23C.01.00]
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Templates In Application: HNDZDEMO.APP