Reeboot and automattically start my program

Is there a way within my code to reboot the computer and have my program start automattically (only once)? My operating system is NT 4.0.
Who is Participating?
japharConnect With a Mentor Commented:
have your program put itself in the startup folder, and set a flag in the registry or in a file. Make your program check for the flag before it does anything and determine the execution path by that. As far as the reboot function, simple API call... check the win32 api ref.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.