How to get AppPath to Executable file's directory using C language on Windows (using MinGW gcc )
问题 My executable file is in this place --> D:\Examples\C_Pro\newApp.exe Also in that "C_Pro" folder contain several files ( file1.txt, file2.txt, file44.exe, newApp.c ) In my newApp.c file, I includes a ShellExecute Function to execute "file44.exe" file in same folder like this --> ShellExecute(NULL,"open","D:\Examples\C_Pro\file44.exe",NULL,NULL,1) in this way all work properly.. I'm talking about AppPath like thing in VB But the case is I want to run this newApp.exe on different pc's So I want