Advertisement
informaticage

GetMyPath

Nov 18th, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     TCHAR my_path[MAX_PATH];
  9.     GetModuleFileName(NULL, my_path, MAX_PATH);
  10.     cout << my_path;
  11.     system("pause >> null");
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement