frebev
let's keep thing simple and add to config.fpw:
on shutdown do (program)
In my experience you cannot use this in a config file. Config files are used for setting up the environment ie: (TITLE = "My Application" or RESOURCE = OFF), you cannot call "on shutdown do..." in a config file.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.