Article View: comp.sys.amiga.tech
Article #4230Programming Question
From: Gavin Stark
Date: Thu, 05 Jul 1990 18:18
Date: Thu, 05 Jul 1990 18:18
11 lines
796 bytes
796 bytes
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
Technical Details
Message-ID:
<8180@ur-cc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!rutgers!sunybcs!uhura.cc.rochester.edu!gest_ltdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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