This thread has been bothering me, because it seems to me that depending
on the user waiting for the backup AFTER he quits the program is just an
accident looking to happen.
I think John has the right idea here. Do NOT close windows etc and
start the backup. Instead, start the backup and post a Humongous great
warning window threatening death and dismembership to anyone who goes
home before it finishes.
Actually, I might look for a different way around it - I hate doing
backups as part of either startup or shutdown. But if you have to, it's
safer to make the user part of the process.
Dan
On 04/01/13 11:53 AM, John Weller wrote:
I'm assuming that it is the client machine and not the server you want to
prevent shutting down. As part of your closing routine you could ask the
user if they want to close the machine when the application finishes. If
they answer yes then call shutdown.exe at the end of your shutdown routine
so that the user is not tempted to close the machine down themselves so that
they can go home.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.