Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!fauern!faui43.informatik.uni-erlangen.de!csbrod From: csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) Newsgroups: comp.sys.atari.st.tech Subject: Re: Can my program find its name? Keywords: tech Message-ID: <1991Feb18.114252.11805@informatik.uni-erlangen.de> Date: 18 Feb 91 11:42:52 GMT References: <2133022@nuthaus.UUCP> Organization: CSD., University of Erlangen, Germany Lines: 17 nut@nuthaus.UUCP (Adam G. Tilghman) writes: > I am writing a program which needs to find out its own name - >I know this is possible, but how is it done? The only way that >I can think of is back-tracing into the parent program to find the >Pexec() parameters, but this doesn't ring very kosher to me :-) >Is there a better way? If your program has been started via shel_write, you can get your path and name by calling shel_read. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de ----------------------------------------------------------------------