Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!purdue!haven!trantor.umd.edu!louie From: louie@trantor.umd.edu (Louis A. Mamakos) Newsgroups: comp.sys.amiga.tech Subject: Re: What is my name? Message-ID: <3380@haven.umd.edu> Date: 19 Jul 89 01:08:52 GMT References: <26385@agate.BERKELEY.EDU> <7330@ardent.UUCP> <26406@agate.BERKELEY.EDU> <7374@ardent.UUCP> Sender: news@haven.umd.edu Reply-To: louie@trantor.umd.edu (Louis A. Mamakos) Organization: University of Maryland, College Park Lines: 13 Just a thought, but doesn't the program that's running have an open I/O stream to the binary that it was loaded from? At least programs with overlays do, so that the overlay manager can load the appropriate segments. Now, given this struct FileHandle * or whatever, maybe you can get a lock. And from there do the normal sorts of things to get the full path name to the binary. Sounds ugly. Louis A. Mamakos WA3YMH Internet: louie@TRANTOR.UMD.EDU University of Maryland, Computer Science Center - Systems Programming