you can get the filename and location from
with in the running program with,
Code:
TCHAR szProgramPath[MAX_PATH];
GetModuleFileName(NULL, szProgramPath, MAX_PATH);
or
Code:
#include <iostream>
using namespace std;
int main(int argc, char *argv[] )
{
cout << argv[0] << endl;
}
would display the location and filename of the
program i believe, so you can use
that however youd like.
Once you use that command to locate the current directory and
filename of your program, you can use it to make a copy
somewhere else perhaps i guess, or this info might make it less
nessassary for you to have the program any certian place.