Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add something so it starts up when computer restarts

Status
Not open for further replies.

anddos

Programmer
Sep 5, 2004
13
GB
ok how would i add this little program to startup when i restart the computer..
#include <isostream>
#int main()
{
std::cout<<"hello world"<<std::end;
return 0;
}
you will i laugh i know , but i am just trying to figure out how to add it so the exe will add to registry current version and startup by its self
thanks
 
Either you put it in the
Start Button->All Programs->Startup folder
or you enter the path into the registry at

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

If you want it to be user dependant (running for current user only), or

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

if you want it to run regardless of user.

/Per

www.perfnurt.se
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top