- Dec
- 238
- 2
TCC 15.01.52 x64 Windows 7 [Version 6.1.7601]
The documentation for FOLDERMONITOR notes:
For example, to monitor your d:\results directory and copy any new or modified files to a web page:
foldermonitor d:\results created modified forever copy "%%_folderfile1" "http://mycompany.com/results/"
So, to test this in directory C:\MJA\Projects\epub-docs:
foldermonitor C:\MJA\Projects\epub-docs created modified 3 echo modified
I only want to see how this works by having a change to any file in that directory trigger an "echo modified" command. So, in that directory:
echo.>> tempfile.tmp
Nothing happened.
I ran foldermonitor /c to remove all monitoring and then tried again. Maybe an echo command isn't sufficient.
foldermonitor C:\MJA\Projects\epub-docs created modified 3 dir
I modified the tempfile.tmp file -- and nothing happened. No command executed.
Then I tried:
foldermonitor C:\MJA\Projects\epub-docs /i"tempfile.tmp" created modified 3 dir
And modified the file, and nothing happened.
I ran foldermonitor /c again, then set it up again for a larger number of iterations, then repeated some of the aboe steps, and then decided to delete tempfile.tmp to see what would happen.
TCC crashed. I have now been able to repeat this crash by repeating the above steps, including the file-deletion. "TCC.exe has stopped working."
I decided to try it in a different directory, just for sport.
foldermonitor c:\temp /i"temp.tmp" created modified deleted 3 echo help
That file didn't exist. So:
c:\temp> echo.> temp.tmp
This time, the word "help" was echoed to the terminal... and then TCC paused, as if waiting for a keystroke. I pressed ENTER. Then I got the command line back.
Tried a second time. This time "help" was echoed and I was returned to the command line immediately.
Third time: Let's see what happens if I delete temp.tmp
Another crash of the same type. Command processor "has stopped working."
Ok, what am I doing wrong here?
The documentation for FOLDERMONITOR notes:
For example, to monitor your d:\results directory and copy any new or modified files to a web page:
foldermonitor d:\results created modified forever copy "%%_folderfile1" "http://mycompany.com/results/"
So, to test this in directory C:\MJA\Projects\epub-docs:
foldermonitor C:\MJA\Projects\epub-docs created modified 3 echo modified
I only want to see how this works by having a change to any file in that directory trigger an "echo modified" command. So, in that directory:
echo.>> tempfile.tmp
Nothing happened.
I ran foldermonitor /c to remove all monitoring and then tried again. Maybe an echo command isn't sufficient.
foldermonitor C:\MJA\Projects\epub-docs created modified 3 dir
I modified the tempfile.tmp file -- and nothing happened. No command executed.
Then I tried:
foldermonitor C:\MJA\Projects\epub-docs /i"tempfile.tmp" created modified 3 dir
And modified the file, and nothing happened.
I ran foldermonitor /c again, then set it up again for a larger number of iterations, then repeated some of the aboe steps, and then decided to delete tempfile.tmp to see what would happen.
TCC crashed. I have now been able to repeat this crash by repeating the above steps, including the file-deletion. "TCC.exe has stopped working."
I decided to try it in a different directory, just for sport.
foldermonitor c:\temp /i"temp.tmp" created modified deleted 3 echo help
That file didn't exist. So:
c:\temp> echo.> temp.tmp
This time, the word "help" was echoed to the terminal... and then TCC paused, as if waiting for a keystroke. I pressed ENTER. Then I got the command line back.
Tried a second time. This time "help" was echoed and I was returned to the command line immediately.
Third time: Let's see what happens if I delete temp.tmp
Another crash of the same type. Command processor "has stopped working."
Ok, what am I doing wrong here?