Path: utzoo!utgpu!attcan!uunet!husc6!psuvax1!rutgers!ucsd!ucbvax!DICKINSN.BITNET!NEWCOMER From: NEWCOMER@DICKINSN.BITNET ("Newcomer, Don") Newsgroups: comp.os.vms Subject: Location Of a Running Program... Message-ID: <8808040003.AA09102@ucbvax.berkeley.edu> Date: 15 Jul 88 18:00:31 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16 CS117030@YUSOL.BITNET writes: > I would like to know if there is any way that you could find > the location of a running program on the disk, because i would > like to put this code in a high level language program, and when > I run the program, it should give me the location where the > actual program is been stored, regardless of my default location. Using SYS$GETJPI and the item JPI$_IMAGNAME will give you the full name of the image being executed by any process. That should do just what you want. Don Newcomer Dickinson College Carlisle PA USA NEWCOMER@DICKINSN.BITNET