MonitorDir.exe /switch "Folder to be monitored" "Script to be executed" Command-line switches (there must be at least one of those above enabled): /FilenameChange /AccessTimeChange /AttrChange (AttributeChange) /CreationTimeChange /DirNameChange /SecurityAttrChanges /SizeChange /WriteTimeChange If you want to use /Activate to automatically activate it. /AddFileName : adds the detected filename as last argument to the batch script /Creation : only execute the batch when a file is created, other events don't trigger the batch /RunOnce : run the script once, and terminates monitoring the folder /Activate : auto activate, you start monitoring immediately /MonitorSubFolders : Monitor changes in subfolders also Examples: MonitorDir Starts monitordir in interactive GUI mode. Without parameters, everything is deselected by default. MonitorDir /SizeChange /Creation /Activate /FilenameChange T:\To C:\Cams\test.bat Monitors the folder "T:\To" if there is a filenamchange or a sizechange, that will be detected. The batch script to be run is "C:\Cams\test.bat", it will only run on creation of a new file. The monitoring of the folder starts immediately. monitordir.exe "C:\CAMS\Temp\TempCal\From" "c:\CAMS\AutoCal_Remote.bat /zip" /FilenameChange /RunOnce /AddFileName /Creation /Activate "C:\CAMS\Temp\TempCal\From" - folder to be monitored. "c:\CAMS\AutoCal_Remote.bat /zip" - the script that will be executed. The script has an argument /zip /FilenameChange : if there is a filenamchange, that will be detected /SizeChange : if there is a sizechange, that will be detected /AddFileName : adds the detected filename as last argument to the batch script /Creation : only execute the batch when a file is created, other events don't trigger the batch /RunOnce : run the script once, and terminates monitoring the folder /Activate : auto activate, you start monitoring immediately start /low /min monitordir.exe "C:\cams\Temp\TempCal\From" "c:\CAMS\AutoCal_Remote.bat /zip" /FilenameChange /RunOnce /AddFileName /Creation /Activate