GENERATED: FEB 13,2021 - 5:47PM
CHTSNAPZIP EXAMPLE [V10.21.02]

Previous Page

This application illustrates how to incrorporate CHTSNAPZIP.EXE into a Clarion application via the global SNAP-IN interface template "CHT ApplicationSnapIns".

CHTSNAPZIP.EXE is a command-line utility that auto-zips a target directory while OPTIONALLY including any sub-directories of the source directory. CHTSNAPZIP.EXE also unzips to a target directory. This application illustrates how to do all of those things from inside a Clarion application using CHT Templates to write the code.

This application presents a SnapZipStartButton template and two input fields, a target zip file name field and a source directory name field. Complete these two fields and click the zip start button.

Other related templates used are SnapZipDirStartButton and SnapUnZipStartButton.

CHTSNAPZIP.EXE warns if the target zip file exists and if the source directory doesn't exist. Messages from CHTSNAPZIP.EXE appear in a window text control to tell you the outcome of pushing the zip button.

External binary dependencies: CHTSNAPZIP.EXE and HNDCAPCON.DLL

Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 © CHT AACHTControlPanel - CHT Global Control Panel (hndtools.tpl)
(0002) ApplicationImagesEx(HNDTools) 1 © CHT ApplicationImagesEx - Application Styling System
(0003) ApplicationSnapIns(HNDTools) 1 © CHT ApplicationSnapIns - Application Snap-In System
(0004) GlobalIncludeHNDSnapCallFunctions(HNDTools) 1 © CHT GlobalIncludeHNDSnapCallFunctions - CHT Snap Call Classes - HNDSnapCall - globally to your application.
(0005) GlobalTransparentControls(HNDTools) 1 © CHT GlobalTransparentControls - Globally Add Transparency To Your Window/Report Controls
(0006) HandyCodeSigningExtension(HNDTools) 1 © CHT HandyCodeSigningExtension - Application Code-Signing System
(0007) HandyVersionResource(HNDTools) 1 © CHT HandyVersionResource - Version Resource/Build Number Information To EXE
(7) Global Templates Found

1 - Procedure Template Type: Form
Main ()
Count Local Template Name Qty Local Template Description
(0008) AppStartSplashProcedure(HNDTools) 1 © CHT AppStartSplashProcedure - Application Splash screen earlier with an option for threaded/unthre
(0009) CHTBestPracticeEmbedClass(HNDTools) 1 © CHT Best Practice Embedding Assistant
(0010) DateTimeDisplay(ABC) 1 Display the date and/or time in the current window
(0011) EmbedWindowFunctions(HNDTools) 1 © CHT EmbedWindowFunctions - HWin An Instance Of: HNDWindow
(0012) HandyApplicationIniPut(HNDTools) 4 © CHT HandyApplicationIniPut - Embed a PUT to the Application INI file or Windows registry.(18)
(0013) HandyFileSelectorControl(HNDTools) 2 © CHT HandyFileSelectorControl - File and directory selector lookup control.(17)
(0014) HandyHelpWhatsNew(HNDTools) 1 © CHT HandyHelpWhatsNew - Build A What's New Request To Your Website.(21)
(0015) HandyToolBarGradient(HNDTools) 1 © CHT HandyToolBarGradient - Place gradient properties as a backdrop on the window toolbar.
(0016) HandyWindowGradient(HNDTools) 1 © CHT HandyWindowGradient - Place gradient properties as a backdrop on the window.
(0017) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(0018) ProcedureSnapIns(HNDTools) 1 © CHT ProcedureSnapIns - Application Snap-In System
(0019) ProcedureTransparentControls(HNDTools) 1 © CHT ProcedureTransparentControls - Set Transparency To Your Procedure Window/Report Controls
(0020) ResizeHandles(HNDTools) 1 © CHT ResizeHandles - Attach "grip-style" resize handles to any window.
(0021) SnapUnZipStartButton(HNDTools) 1 © CHT SnapUnZipStartButton - Button that starts CHTSNAPZIP.EXE Utility (UZ)
(0022) SnapZipDirStartButton(HNDTools) 1 © CHT SnapZipDirStartButton - Button that starts CHTSNAPZIP.EXE Utility (ZR)
(0023) SnapZipStartButton(HNDTools) 1 © CHT SnapZipStartButton - Button that starts CHTSNAPZIP.EXE Utility (ZZ)
(16) Local Templates Found In Main

2 - Procedure Template Type: Splash
JumpStartSplash07 ()
Count Local Template Name Qty Local Template Description
(0024) AppBuildDateTimeStamp(HNDTools) 1 © CHT AppBuildDateTimeStamp - An application build date/time stamp.
(0025) AppBuildNumberStamp(HNDTools) 1 © CHT AppBuildNumberStamp - An application build number or version stamp.
(0026) AppCopyRightStamp(HNDTools) 1 © CHT AppCopyRightStamp - An application copyright stamp.
(0027) HandyTellMeControl(HNDTools) 1 © CHT HandyTellMeControl - Text box control to provide a message or help text.
(0028) ProcedureImagesEx(HNDTools) 1 © CHT ProcedureImagesEx - Application Styling System
(0029) ProcedureSnapIns(HNDTools) 1 © CHT ProcedureSnapIns - Application Snap-In System
(0030) ProcedureTransparentControls(HNDTools) 1 © CHT ProcedureTransparentControls - Set Transparency To Your Procedure Window/Report Controls
(7) Local Templates Found In JumpStartSplash07

Copyright © 1996-2021 - CHT Version: [25A.01.00]
Gus M. Creces, CHT - Clarion Handy Tools
All Rights Reserved Worldwide

chtlogo001.gif
Application Templates