Article 142227 of comp.os.vms: Path: nntpd.lkg.dec.com!depot.mro.dec.com!news.jrd.dec.com!tbjnws.tbj.dec.com!tkonws.tko.dec.com!news.dec-j!spin-hsd0-tky!spinnews!wnoc-tyo-news!news.iij.ad.jp!rim.or.jp!news.kddnet.ad.jp!imci5!pull-feed.internetmci.com!news.internetMCI.com!newsfeed.internetmci.com!news.mathworks.com!mvb.saic.com!info-vax From: Arne Vajhoej Newsgroups: comp.os.vms Subject: Re: like DOS PROMPT command? Message-ID: <01I25C7FPZR68WWC1U@kopc.hhs.dk> Date: Sat, 09 Mar 1996 20:39:55 +0100 Organization: Info-Vax<==>Comp.Os.Vms Gateway X-Gateway-Source-Info: Mailing List Lines: 44 > Is there something for VMS that works like SET PROMPT $P$G in DOS? This question is becoming a FAQ ! (third time the last 3 months) You have several options: 1) Realize that VMS is not DOS and drop the idea of prompt displaying directory. I will recommend that solution ! 2) Get a CD.COM that changes directory and updates the prompt. Dozens of them are available and you can easily write your own. Then define a symbol to activate that COM-file. It only works if you use that symbol/COM-file to change directory with. 3) Get and install one of the kernel hacks, that that intercepts calls to SYS$SETDDIR (which actually changes the directory) and also update the prompt (that info is also stored in P1 space). This needs privs (and many system-managers do not like that), but will catch everything. I will recomend you to look for Brian Schenkenberg's version (sorry I can not produce a URL). 4) Fix the SET DEFAULT command to run a program, which changes directory and sets the prompt appropriatetly. It does not need privs and will work for all SET DEFAULT's both interactive and embedded in various COM-files. It does not work for programs calling SYS$SETDDIR. I have written such a utility and it is available at ftp://ftp.hhs.dk/setpmt/setpmt.zip ! Arne Arne Vajhøj local DECNET: KOPC::ARNE Computer Department PSI: PSI%23831001354030::ARNE Southern Denmark Business School Internet: ARNE@KO.HHS.DK WWW URL: http://www.hhs.dk/~arne/arne.html