Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!gururaj From: gururaj@eniac.seas.upenn.edu (Ravi Gururaj) Newsgroups: comp.windows.ms Subject: GetModuleFileName to get applications EXE File path Message-ID: <15654@netnews.upenn.edu> Date: 18 Oct 89 21:51:55 GMT Sender: news@netnews.upenn.edu Reply-To: gururaj@eniac.seas.upenn.edu (Ravi Gururaj) Distribution: usa Organization: University of Pennsylvania Lines: 9 Thanks to all those who responded to my request. I am posting the most appropriate method in case others are interested. GetModuleFileName(hInstance, path_buff, sizeof(path_buff)); will get the full path name of the EXE file regardless of how the application was loaded. Thanks to Bill Joy for his reply.