Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!pacbell.com!pacbell!dplace!woodowl!nuthaus!nut From: nut@nuthaus.UUCP (Adam G. Tilghman) Newsgroups: comp.sys.atari.st.tech Subject: Can my program find its name? Keywords: tech Message-ID: <2133022@nuthaus.UUCP> Date: 16 Feb 91 10:19:34 GMT Organization: Eleusesthai BBS, So. San Francisco Lines: 13 X-Version: Rodney's UUCP modules 05/09/90 V1.15 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? -- Adam -- = Adam G. Tilghman - SysOp/WizOp/Janitor of Eleusesthai BBS = = USnail: 116 Escanyo Dr., So. San Francisco, CA, 94080-4134 USA = = Voice Phone: +1 415 873 3091 / BBS Phone: +1 415 871 9451 = = nut@nuthaus.UUCP {hoptoad,well}!wet!nuthaus!nut nut@wet.UUCP =