I recently upgraded from 9.x to
TCC 15.01.57 Windows XP [Version 5.1.2600]
TCC Build 57 Windows XP Build 2600 Service Pack 3
and had to make a number of adjustments to address the changes.
One thing I haven't worked out yet is FOLDERMONITOR.
Basically I have a batch file that runs forever in the tray and uses foldermonitor:
--- fmtest.bat
--- process_xxx.bat
Now, with fmtest running I go to a different TCC console window:
I hear 2 beeps and the log file looks like this:
Now I do:
hear 1 beep and the log file now has this additional blank entry:
There's been a lot of discussion about foldermonitor, and I read a lot of it, but didn't follow if these empty events were WAD or not. With no information being sent to the batch file on these additional events, they don't seem very useful and just kick off a bunch of additional processes that then need to check if %_folderfile1.==.
TCC 15.01.57 Windows XP [Version 5.1.2600]
TCC Build 57 Windows XP Build 2600 Service Pack 3
and had to make a number of adjustments to address the changes.
One thing I haven't worked out yet is FOLDERMONITOR.
Basically I have a batch file that runs forever in the tray and uses foldermonitor:
--- fmtest.bat
Code:
@echo off
cls
SET monitor_folder=c:\fmtest
CDD %monitor_folder
ECHO Watching %monitor_folder
foldermonitor /c
foldermonitor %monitor_folder /I"*.xxx" /U created forever START /B c:\fmtest\process_xxx.bat
foldermonitor
ON BREAK GOTO Done
DO FOREVER
REM IF NOT EXIST c:\stayopen WINDOW TRAY
DELAY 20
ENDDO
:Done
foldermonitor /c
foldermonitor
--- process_xxx.bat
Code:
@echo off
REM IF NOT EXIST c:\stayopen WINDOW TRAY
SET log_file=c:\fmtest\process.log
ECHO -------[%_ISODATE %_TIME]----------------------------------------- >> %log_file
SET montior_folder=c:\fmtest
CDD %monitor_folder
ECHO action: %_folderaction >> %log_file
ECHO count : %_foldercount >> %log_file
ECHO name : %_foldername >> %log_file
ECHO file1 : %_folderfile1 >> %log_file
ECHO file2 : %_folderfile2 >> %log_file
BEEP
DELAY 2
REM del /y %_folderfile1
EXIT
Now, with fmtest running I go to a different TCC console window:
Code:
c:\fmtest>touch /c blah.xxx
12/26/2013 12:39:41.202 C:\fmtest\blah.xxx
I hear 2 beeps and the log file looks like this:
Code:
-------[2013-12-26 12:39:42]-----------------------------------------
action: CREATED
count : 5
name : c:\fmtest
file1 : blah.xxx
file2 :
-------[2013-12-26 12:39:42]-----------------------------------------
action:
count :
name :
file1 :
file2 :
Now I do:
Code:
c:\fmtest>del blah.xxx
Deleting C:\fmtest\blah.xxx
1 file deleted
hear 1 beep and the log file now has this additional blank entry:
Code:
-------[2013-12-26 12:42:28]-----------------------------------------
action:
count :
name :
file1 :
file2 :
There's been a lot of discussion about foldermonitor, and I read a lot of it, but didn't follow if these empty events were WAD or not. With no information being sent to the batch file on these additional events, they don't seem very useful and just kick off a bunch of additional processes that then need to check if %_folderfile1.==.