K
Kunal
Hi friends,
I'm faced with a requirement that is kind of unknown to me.
In my situation, if my application was running and the machine
reboots, then I need to start my
application automatically once the machine comes up. If the
application was closed by the user
then it should not come up at system reboot next time.
One way to do this could be to write a small program which reads a
"status" from a file which
will be written to by the application while it is running. The app
would write "Running" when it is executing or "Not Running" when it is
closed, to this file. I could then install this program as a windows
service to start up automatically at reboot time. There it would check
up the
contents of the status file and take appropriate action.
I've heard this can also be achieved through some registry work.
Are there any other ways of doing this ? What would be the best,
easiest and efficent way
of doing this ?
Thanks n Regards,
Kunal
I'm faced with a requirement that is kind of unknown to me.
In my situation, if my application was running and the machine
reboots, then I need to start my
application automatically once the machine comes up. If the
application was closed by the user
then it should not come up at system reboot next time.
One way to do this could be to write a small program which reads a
"status" from a file which
will be written to by the application while it is running. The app
would write "Running" when it is executing or "Not Running" when it is
closed, to this file. I could then install this program as a windows
service to start up automatically at reboot time. There it would check
up the
contents of the status file and take appropriate action.
I've heard this can also be achieved through some registry work.
Are there any other ways of doing this ? What would be the best,
easiest and efficent way
of doing this ?
Thanks n Regards,
Kunal