Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a program in c and I want to install it in my system which will calculate the duration of time that system is used. I have added the exe file in "taskscheduler" so that it is stating and creating one window when my laptop is switching on.But it is not working if I close the window.

So how can I install or how shall I create the exe file so that it will run continuously.
Posted

1 solution

Create your application as a windows service and it will be running continuously.

Or you can call GetTickCount()[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900