Hello, I want to make a program that installs it self to a given directory, yet I don't know how to do it....I need a program that erases itself, where ever it is, and copies itself to the directory it was given, such as:
Code:
#include <iostream>
using namespace std;
char address[80];
int main()
{
cout<<"Where do you wish to install this program? : "<<endl;
cin.getline(address,80,'\n');
return 0;
}
Program output:
Code:
Where do you wish to install this program? :
C:\Program Files\
Yet I don't know how to get there, can someone help me?? Please....