You can use registry option to run any exe file at startup. just use the command "system()". and pass the registry command to add the file into system startup. ALl this can be done in ur c/C++ program