GENERATED: MAR 31,2012 - 3:31PM
Monitor Directory Service [V8.03.00]

Previous Page
This application illustrates a new CHT template called EmbedFileNotifyFunctions and a new class called HNDFileNotify (HNDFILENOTIFY.INC/HNDFILENOTIFY.CLW).

The class attached to your procedure by this template, once initialized gives your procedure the ability to detect all changes occuring in a nominated directory. Whenever a new file is added to this directory, or a file is changed, your procedure is sent an event called EVENT:FileChanged to signal that this has occurred. At that point, what you do as a programmer to act on that event is wide open.

This application illustrates one use of this new, directory monitoring capability. When a file is added to the designated source directory, that file is copied into a temporary, processing directory, from where it is compressed and encrypted into a CHT .HZO transport container.

The file or files meeting the filter setting provided on the application interface, eventually then, end up compressed into this .HZO container. There is also an optional switch to remove the processed source file(s) from the directory being monitored.

Any questions, feel free to ask.

Cheers,
Gus M. Creces
The Clarion Handy Tools Page
www.cwhandy.ca (CHT Website)
news.cwhandy.ca (CHT Forum)




Count Global Template Name Qty Global Template Description
(0001) AACHTControlPanel(HNDTools) 1 AACHTControlPanel - CHT Global Control Panel.
(0002) ApplicationImagesEx(HNDTools) 1 ApplicationImagesEx - A tool to better control the use of images and icons in your application.
(0003) HNDCMPControlPanel(HNDTools) 1 HNDCMPControlPanel - Interface to the CHT Compile Manager.
(0004) HandyVersionResource(HNDTools) 1 HandyVersionResource - Version Resource/Build Number Information To EXE
(0005) INIFile(HNDTools) 1 INIFile - Attach CHT .INI FIle and Registry extension classes - HNDIni - globally to your application.
(0006) VblFileNames(HNDTools) 1 VblFileNames - Incorporate variable file names and defaults into your app from the dictionary.
(6) Global Templates Found

1 - Procedure Template Type: Source
ProcessDirEntriesToHZO (*WINDOW xParentWin, STRING xMonitorInputDir, STRING MonitorInputQuery)
Count Local Template Name Qty Local Template Description
(0007) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(0008) Source_EmbedDiskExFunctions(HNDTools) 1 Source_EmbedDiskExFunctions - An Instance Of HNDDiskEx.
(0009) Source_EmbedEncryptionFunctions(HNDTools) 1 Source_EmbedEncryptionFunctions - An Instance Of HNDEncrypt.
(0010) Source_EmbedHZOFunctions(HNDTools) 1 Source_EmbedHZOFunctions - An Instance Of HNDZStore.
(0011) Source_EmbedQueryBuilderFunctions(HNDTools) 1 Source_EmbedQueryBuilderFunctions - An Instance Of HNDQueryBuilder.
(5) Local Templates Found In ProcessDirEntriesToHZO

2 - Procedure Template Type: Splash
JumpStartSplashCHTBlue ()
Count Local Template Name Qty Local Template Description
(0012) AppBuildDateTimeStamp(HNDTools) 1 AppBuildDateTimeStamp - An application build date/time stamp.
(0013) AppBuildNumberStamp(HNDTools) 1 AppBuildNumberStamp - An application build number or version stamp.
(0014) AppCopyRightStamp(HNDTools) 1 AppCopyRightStamp - An application copyright stamp.
(0015) EmbedWindowFunctions(HNDTools) 1 EmbedWindowFunctions - An Instance Of:
(0016) HandyTellMeControl(HNDTools) 1 HandyTellMeControl - Text box control to provide a message or help text.
(0017) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(6) Local Templates Found In JumpStartSplashCHTBlue

3 - Procedure Template Type: Window
MainServiceWindow ()
Count Local Template Name Qty Local Template Description
(0018) EmbedFileNotifyFunctions(HNDTools) 1 EmbedFileNotifyFunctions - An Instance Of:
(0019) EmbedShellFunctions(HNDTools) 1 EmbedShellFunctions - An Instance Of:
(0020) EmbedWindowFunctions(HNDTools) 1 EmbedWindowFunctions - An Instance Of:
(0021) HandyApplicationIniPut(HNDTools) 5 HandyApplicationIniPut - Embed a PUT to the Application INI file or Windows registry.(11)
(0022) HandyFileSelectorControl(HNDTools) 1 HandyFileSelectorControl - File selector and lookup control.(2)
(0023) HandyHelpFileFetch(HNDTools) 3 HandyHelpFileFetch - Build A Help File Request To Your Website.(16)
(0024) HandyHelpWhatsNew(HNDTools) 1 HandyHelpWhatsNew - Build A What's New Request To Your Website.(15)
(0025) HandyToolBarImage(HNDTools) 1 HandyToolBarImage - Place a gradient-style image as a backdrop on the window toolbar.
(0026) HandyWindowGradient(HNDTools) 1 HandyWindowGradient - Place gradient properties as a backdrop on the window.
(0027) ProcedureImagesEx(HNDTools) 1 ProcedureImagesEx - A tool to better control the use of images and icons in your procedure.
(10) Local Templates Found In MainServiceWindow

Copyright © 1996-2012
Gus M. Creces and The Clarion Handy Tools Page.
All Rights Reserved Worldwide

chtlogo001.gif Templates In Application: HNDMONITORDIRECTORYSRVC.APP