Just doing some quick thinking and a start maybe something like this, then wrap your code around it.

Shane it is a good idea, I like the fact you can monitor a file, can be used for update of patches. A server waiting for a request from a workstation, once it has a request it will send down the patch.



Break On
Call 'd:\kix\functions\dirlist()'

$directory = "C:\ScannedDocs"

$dirlist = DIRLIST($Directory+'\*.*',1+2)
$FileCount = Ubound($dirlist) + 1

While @Error = 0
   
    $Current = $FileCount 
    $dirlist = DIRLIST($Directory+'\*.*',1+2)
    $FileCount = Ubound($dirlist) + 1
   
    Select
   
    Case $FileCount > $Current
        $Count = Val(Ubound($dirlist)) + 1
        ? 'File Added. Number of File(s): '+$Count
   
    Case $FileCount < $Current
        $Count = Val(Ubound($dirlist)) + 1
        ? 'File Deleted. Number of File(s): '+$Count

    EndSelect
Loop



[ 08. October 2003, 00:29: Message edited by: Richard Farthing ]