Path: utzoo!utgpu!watserv1!watmath!att!rutgers!sunybcs!uhura.cc.rochester.edu!gest_ltd From: gest_ltd@uhura.cc.rochester.edu (Gavin Stark) Newsgroups: comp.sys.amiga.tech Subject: Programming Question Keywords: C, programming Message-ID: <8180@ur-cc.UUCP> Date: 5 Jul 90 18:18:49 GMT Organization: Univ. of Rochester, Computing Center Lines: 11 Question: Does anyone know how from within C to find the directory that a program was run from.. I don't mean the currect shell directory.. I want to find the directory where the program actually exists on the disk... Like if I had a file in my C directory I would want the program to get DH0:C even if I was in DH0:Source when I ran the program.. Any help would be appreciated. Gavin Stark. gest_ltd@uhura.cc.rochester.edu