detect specific changes in a specific file then launch xyz.exe?

  • Thread starter Thread starter Google's friend
  • Start date Start date
G

Google's friend

looking for an app that gives me multiple capacity to monitor for a
specific text based change in a file then automatically launch a .exe
file
nnCron only detects any chnage not a specific change otherwise it
would be perfect

TIA Peter
 
(e-mail address removed) (Google's friend) wrote in
looking for an app that gives me multiple capacity to monitor for a
specific text based change in a file then automatically launch a .exe
file
nnCron only detects any chnage not a specific change otherwise it
would be perfect

Using nnCron you can detect any change first, and then read the contents
of the file and search for a specific change (using RegExps, for
example). Then you can start your app _only_ if specific phrase was
found.

There is an example of the task, which will detect any change of the
'test.txt' file and then search for 'important text' phrase in file
contents:

#( test_file_change
\ NoActive
WatchFile: "c:\temp\test.txt"
Action:
RE-MATCH: "%FILE: c:\temp\test.txt%" "/important text/"
IF
\ start your app here
MSG: "important text was found in test.txt"
THEN
)#
 
Back
Top