Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoiding EXE from terminating ...
#1
Hi,

I created an executable that should monitor a file event eg(added, modified). Under Quick Macros it works fine and continuosly but as an executable it captures the first event and then it terminates.

How can I keep the executable constantly active?

Thanks
#2
For example
wait -1
(in main thread). Because exe ends when main thread ends.
#3
Gintaras,

Thanks for the prompt reply!

This is the example code:

function event $name [$newname]
event: 1 added, 2 removed, 4 renamed, 8 modified

sel event
case 1
mes- "Run and Synchronize eFilmLite?" "" "OC?" ;;message box; on Cancel end macro
run "C:\RSNA2009FinalWithPortables\eFilmLt.exe"
case 8
mes- "Synchronize eFilmLite?" "" "OC?" ;;message box; on Cancel end macro
run "C:\RSNA2009FinalWithPortables\eFilmLt.exe"

wait -1

Would this perform the desired effect of executing the program every time the file is modified?

Thanks
#4
QM triggers don't work in exe.
#5
Do I have to install QM on target machine for the trigger to work?

Thanks
#6
Yes. Because QM manages triggers. In exe there is no trigger code.


Forum Jump:


Users browsing this thread: 1 Guest(s)