|
-
Feb 28th, 2002, 04:02 AM
#1
Thread Starter
New Member
Task to be performed during shutdown
hi,
I want to run an exe during the machine shutdown. How can this be done?
Thanx
-
Feb 28th, 2002, 05:34 AM
#2
PowerPoster
I'd be surprised if you could.
Shutdown closes all active programs, and kills the processes...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Feb 28th, 2002, 08:39 AM
#3
rjlohan is correct. The answer to your question is, you can't.
-
Feb 28th, 2002, 04:59 PM
#4
PowerPoster
I'm actually curious now, as to why you would actually want to do that?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Feb 28th, 2002, 05:09 PM
#5
This is a rather generic hack of a way but you could make a program with no interface that loads a form but doesn't show it. Then just leave it running so that the when windows shuts it down during its close up it'll fir the form's query unload event (and unload).
-
Feb 28th, 2002, 05:10 PM
#6
PowerPoster
It won't work though, because the whole shutdown process is killing everything. Try it out, with notepad or something.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Mar 1st, 2002, 11:56 AM
#7
Thread Starter
New Member
Actually I wanted to run a program which will determine for how much time was windows session going on. If I start the program in background and keep it running then there are lot of chances that the user will kill that application , so if i run this application of mine just before shut down then there is very rare chances of bypassing it as i want to kepp track of the time the user uses his machine (windows application)...
-
Mar 1st, 2002, 12:19 PM
#8
What do you mean try it out with notepad? How could I try that out with notepad?
It would work depending on how complex a thing you want to do at system close. I have a chat app that sends some finishing messages when it gets shut off, even when the system shuts it off. I think the system allows it so much time before it forces the shut off, there must be some timeout value.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|