🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1903

Getting Application resident directory at runtime.

#1903
From: Ravi Gururaj
Date: Wed, 18 Oct 1989 05:47
10 lines
930 bytes
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.
Technical Details
Message-ID: <15615@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!netnews.upenn.edu!eniac.seas.upenn.edu!gururaj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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