Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!TEMPLEVM.BITNET!V2002A From: V2002A@TEMPLEVM.BITNET ("The Radio Gnome") Newsgroups: comp.os.vms Subject: getting current dir in dcl prompt Message-ID: <8802061802.AA19623@ucbvax.Berkeley.EDU> Date: 28 Jan 88 19:00:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 25 Hi, Thanks for the multitude of responses! The consensus seems to be: $TEMP = F$ENVIRONMENT("DEFAULT") $SET PROMPT = "''TEMP'" or $TEMP = F$DIRECTORY() $SET PROMPT = "''TEMP'>" or more briefly $SET PROMPT = "''F$ENVIRONMENT("DEFAULT")>" etc... However, none of these retain the correct prompt if the default is changed. You must execute the commands all over again. I have two command procedures from the net, SD.COM and CD.COM, which I will try when I have time. Andy Wing V2002A%TEMPLEVM.BITNET@CUNYVM.CUNY.EDU "No matter what happens, you can always find someone who predicted it." -------