Click to See Complete Forum and Search --> : Getting EXE and PATH names at runtime


April 10th, 1999, 08:22 AM
Can any one tell me if it is possible and how to get the path from where an EXE was executed, and the name the EXE. All of that at runtime.

Any help would be appreciated!

Srinath Salvadhi
April 10th, 1999, 11:03 AM
Use "GetModueFileName" Win32 API to get the complete path of the EXE from which the application was launched. Once you gor the complete path you can devide it to get the Name and Path separately.