Does anyone know how to get my program name even if I rename it?
try with this:
1 2 3 4 5 6 7 8
|
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << argv[0];
}
|
this will output the full path of your executable
Last edited on