GENERATED: JUL 11,2017 - 1:18AM
CHT Monitor Directory Service [V10.17.06.0284]

Previous Page
This "CHT Utility Application" illustrates a 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 and, optionally, its subdirectories. Whenever a new file is added to the target area, 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 powerful, directory monitoring capability. When a file is added to the designated source directory, that file is copied into a target directory somewhere else on the local network.

The file or files meeting the filter setting provided on the application interface, eventually then, end up sitting somewhere else on the network, for instance, in a server directory. 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)




 
PROCEDURE (1):
JumpStartSplashCHTBlue (Procedure Template: Splash)
Count Instance Class Type Methods Header File
(0001) HTellMe HNDWindow HND 214 HNDWINDO.INC
(0002) HWin HNDWindow HND 214 HNDWINDO.INC
(0003) Toolbar ToolbarClass ABC 6 ABTOOLBA.INC
(0004) ThisWindow WindowManager ABC 39 ABWINDOW.INC
(4) Class Instances Found In JumpStartSplashCHTBlue


 
PROCEDURE (2):
MainServiceWindow (Procedure Template: Window)
Count Instance Class Type Methods Header File
(0001) HDisk HNDDisk HND 369 HNDDISK.INC
(0002) FNOTIFY HNDFileNotify HND 5 HNDFILENOTIFY.INC
(0003) SHELL HNDShell HND 89 HNDSHELL.INC
(0004) HWin HNDWindow HND 214 HNDWINDO.INC
(0005) Toolbar ToolbarClass ABC 6 ABTOOLBA.INC
(0006) ThisWindow WindowManager ABC 39 ABWINDOW.INC
(6) Class Instances Found In MainServiceWindow


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

chtlogo001.gif Classes By Procedure In HNDMONITORDIRECTORYSRVC.APP