Hey everyone,

I'm a beginner windows programmer, but I'm trying to make a program that copies itself into the windows "Program Files" folder and run on startup.

This is a console program in c++ and I'm stuck.

I tried doing something like:

Code:
system("mkdir %programfiles%\\AntiLeetSpeak");
system("copy AntiLeetSpeak.exe %programfiles%\\AntiLeetSpeak\\AntiLeetSpeak.exe");
It copied the executable into the program files folder, but now I have no clue how to make it startup on system start.

I know you can place it in the registry (SOFTWARE\Microsoft\Windows\CurrentVersion\Run) - but as far as that goes, I'm stuck...