Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!aurora!labrea!agate!ucbvax!MITRE.ARPA!nigam%mwvms From: nigam%mwvms@MITRE.ARPA Newsgroups: comp.os.vms Subject: Getting directory in DCL prompt Message-ID: <8801271320.AA15259@mitre.arpa> Date: 27 Jan 88 13:20:54 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The MITRE Corp., Washington, D.C. Lines: 25 -------- >From: "The Radio Gnome" >Subject: getting current dir in dcl prompt > The logical thing to do would be: >$TEMP = "show default" >$SET PROMPT = 'TEMP' > >..but VMS will only take a string for SET PROMPTs argument >and the string must not have spaces in it. VMS complains about >"too many parameters" >:-{ Try $SET PROMPT='F$STRING(F$DIRECTORY()+">")' This works best if imbeded in a .COM file which you use to change directories; several such have appeared on DECUS tapes in the past. Incidentally, you can have spaces in your string, just enclose the whole thing in quotation marks, ie. $SET PROMPT="Hello World" Alok C. Nigam nigam@mitre.arpa -------