- Jul
- 178
- 1
I've been messing around with FOLDERMONITOR (prompted by Jang's thread about his problems with it), trying to understand how I might make use of it for handling the synchronisation of folders between the local HD and the NAS, and I came across an anomalous situation that I suspect might be a bug (sorry, undesirable feature).
The sequence of activities that triggered the output below was
It might be worth noting that the meminfo file is over 180MB in size, whereas the empty text file started as 1 byte and was only a dozen or so when I saved it, so I wonder whether there is a timing issue here with events happening too close together??
I know I'm one build behind the curve and will attempt to re-test this later, but for now I have a cricket match to go and umpire :)
TCC 12.10.66 x64 Windows 7 [Version 6.1.7601]
TCC Build 66 Windows 7 Build 7601 Service Pack 1
The sequence of activities that triggered the output below was
- set up duff foldermonitor (the first line of output)
- clear that and set it up properly
- change name of mp3stick.not folder using Windows Explorer
- rename that folder twice more using an elevated command prompt
- edit meminfo_full_dump.out using Kedit for Windows and immediately save it (which you can see produces a .BAK version as well as updating the original)
- create empty_example.txt using an ECHO from the elevated prompt
- edit that empty_example.txt using Kedit again, add some text and then save. This created a backup and updated the original but FOLDERMONITOR only saw the first of those actions
- delete both empty_example.txt and the .bak version from Windows Explorer but FOLDERMONITOR only registered one of the two deletions
Code:
I:\websites\Badgers\new>A= C= N= 1= 2=
foldermonitor /c
I:\websites\Badgers\new>foldermonitor /s d:\temp\ created deleted modified renamed forever echo A=%%_folderaction C=%%_foldercount N=%%_foldername 1=%
%_folderfile1 2=%%_folderfile2
I:\websites\Badgers\new>foldermonitor
d:\temp\ created deleted modified renamed (0/FOREVER) echo A=%_folderaction C=%_foldercount N=%_foldername 1=%_folderfile1 2=%_folderfile2
I:\websites\Badgers\new>A=RENAMED C=1 N=d:\temp\ 1=mp3stick.not 2=mp3stick
elevate
I:\websites\Badgers\new>foldermonitor
d:\temp\ created deleted modified renamed (1/FOREVER) echo A=%_folderaction C=%_foldercount N=%_foldername 1=%_folderfile1 2=%_folderfile2
I:\websites\Badgers\new>A=RENAMED C=2 N=d:\temp\ 1=mp3stick 2=mp3sticky
A=RENAMED C=3 N=d:\temp\ 1=mp3sticky 2=mp3stick
A=RENAMED C=4 N=d:\temp\ 1=meminfo_full_dump.out 2=meminfo_full_dump.bak
A=MODIFIED C=5 N=d:\temp\ 1=meminfo_full_dump.out 2=
A=CREATED C=6 N=d:\temp\ 1=empty_example.txt 2=
A=RENAMED C=7 N=d:\temp\ 1=empty_example.txt 2=empty_example.bak
A=DELETED C=8 N=d:\temp\ 1=empty_example.txt 2=
foldermonitor
d:\temp\ created deleted modified renamed (8/FOREVER) echo A=%_folderaction C=%_foldercount N=%_foldername 1=%_folderfile1 2=%_folderfile2
I:\websites\Badgers\new>
It might be worth noting that the meminfo file is over 180MB in size, whereas the empty text file started as 1 byte and was only a dozen or so when I saved it, so I wonder whether there is a timing issue here with events happening too close together??
I know I'm one build behind the curve and will attempt to re-test this later, but for now I have a cricket match to go and umpire :)
TCC 12.10.66 x64 Windows 7 [Version 6.1.7601]
TCC Build 66 Windows 7 Build 7601 Service Pack 1