Start Shutdown Restart - Close Program first

G

Guest

I have a program built on sybasesql and need the program to fully shutdown
first, when a user clicks on start shutdown or start shutdown restart I want
this program to shutdown before anything else happens.
 
P

Pop`

Walkerbread said:
I have a program built on sybasesql and need the program to fully
shutdown first, when a user clicks on start shutdown or start
shutdown restart I want this program to shutdown before anything else
happens.

OK, now we know what you want; what are the specifics of your questions and
what you're already tried?
 
G

Guest

When a user hits the start/shutdown/ in windows XP I want that to initiate
the shutdown of a program prior to fullfiling the windows shutdown sequence.

I can not use the shutdown script because it runs after the log off which is
after the program is killed. The program has a sql database that can become
corrupt with improper shutdown.

Thanks in advance!
 
N

Neil Howie

When Windows closes, it closes the program. Take any required action
required to protect the integrity of the database in the program's main
form OnClose or OnCloseQuery event. This action will take place before
the program ends and therefore before Windows shuts down.

Or am I being naive?

--
Neil

Anti-spam - Domain is really oakleaf # idps ~ co + uk (change symbols to
dots)




| When a user hits the start/shutdown/ in windows XP I want that to
initiate
| the shutdown of a program prior to fullfiling the windows shutdown
sequence.
|
| I can not use the shutdown script because it runs after the log off
which is
| after the program is killed. The program has a sql database that can
become
| corrupt with improper shutdown.
|
| Thanks in advance!
|
| "Pop`" wrote:
|
| > Walkerbread wrote:
| > > I have a program built on sybasesql and need the program to fully
| > > shutdown first, when a user clicks on start shutdown or start
| > > shutdown restart I want this program to shutdown before anything
else
| > > happens.
| >
| > OK, now we know what you want; what are the specifics of your
questions and
| > what you're already tried?
| >
| >
| >
 
P

Pop`

Don't know what "script" you're referring to unless you've written your own
to shut down with?
Anyway, a normal shut down -should- properly close open programs FOR you.
It -should- also stop and ask if you want to save open files in the
application that's closeing, else the latest data could be lost. That's OK
for attended shutdowns but not for unattended shutdowns. I don't use SQL so
I don't know if it'd lose data in an unattended shut down or not.

So, that probably doesn't answer your question, right? Still more info
needed I'm afraid. What are you doing, trying to run backups overnight or
something? What's the real problem in plain language.

Pop`
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top