Incode Systems Home Page Incode Systems, Inc.

Saturday, April 11, 2009 2:30 pm CDT


FNotify - Copyright (C) 2009, Incode Systems, Inc.

Usage: [options] Path

FNotify waits for one of the changes specified to occur in
the Path given. FNotify exits with ERRORLEVEL 0 if change detected.
Path is the directory to monitor. To monitor the working
directory, use .\ as the Path.

FNotify uses File Change Notification to report changes,
so it uses virtually no processor time while waiting and exits
virtually immediately when the change is detected.

-s          Monitor subdirectories
-FileName   Monitor file name changes
-DirName    Monitor directory name changes
-Attribs    Monitor file attribute changes
-Size       Monitor file size changes
-LastWrite  Monitor LastWrite timestamp changes (default)
-LastWrite- Do NOT Monitor LastWrite timestamp changes
-Security   Monitor file security changes
-timeout:n  n is the number of milliseconds to timeout
            default is 0, which waits forever.
            n may end in s for seconds, m for minutes, h for hours.

FNotify exits with ERRORLEVEL 0 if the change indicated by the
options occurs.
ERRORLEVEL 1 if time out.
ERRORLEVEL 2 if User exits with Ctrl-C, Ctrl-Break, or System logout, etc.
ERRORLEVEL 3 if Path not found.
ERRORLEVEL 4 if Wait Failed.
ERRORLEVEL greater than 4 indicates an OS error.

The default 0 timeout causes FNotify to wait forever for the
change specified. In this case, exit the program with Ctrl-C or Ctrl-Break.
To cause the program to exit programmatically, just create a change
in the monitored directory and check for that change in the batch file.

Version 0.9.1
To see complete usage, type FNotify /? | more