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: Getting Application resident directory at runtime. Message-ID: <15615@netnews.upenn.edu> Date: 18 Oct 89 05:47:38 GMT Sender: news@netnews.upenn.edu Reply-To: gururaj@eniac.seas.upenn.edu (Ravi Gururaj) Distribution: usa Organization: University of Pennsylvania Lines: 10 I am developing a MS-Windows application. I need to know which directory my program's EXE file resides in. For complicated reasons I do not have access to the CommandLine parameter that the WinMain function receives. Please note that a call to a get_current_directory function will not suffice because the application may have been started from a different drive/directory. Thanks in advance Ravi Gururaj University of Pennsylvania.