[comp.os.msdos.programmer] Can I intercept changes to the system prompt?

sorrow@oak.circa.ufl.edu (06/20/91)

I am currently writing a slew of utilities to make my DOS system look like
UNIX.  And before you say "Use 4DOS!!!!" -- I tried.  4DOS won't work with
BOOTCON.SYS.  Besides, I like sticking to a standard command interpreter,
purist that I am. :-)

Anyway, so far I have obtained an RM, DOSEDIT, am writing CHMOD, just finished
writing LS, will eventually port AWK, rewrite GREP based on Turbo-GREP, and
am using SWITCHAR as found in the UnDocumented DOS book (GOOD book).

Now that I can use the '-' character as a command line switch for DOS, and 
now that I can use the '/' to change directories, I would like to know if 
there is a way for me to change the prompt so that instead of:

C> SET PROMPT $P$G
C:\UTIL\EUNUCHS>

I can get the following:

C:/util/eunuchs>

I don't believe that I can use normal DOS calls, since the prompt is controlled
by the current command interpreter, in my case COMMAND.COM (DOS 3.30).  Any
suggestions?

Brian
/*
Brian Hook -- MS-DOS Programmer for Contract
-----------------------------------------------------------------
"Seamus, that's my dog...I saw her today at the reception...sorry, sixTEEN
inches....better save the women and children first...but this one goes to 11!
..anymore of that plutonium nyborg?....there can be only ONE!....like a 
finger pointing to the moon....ease the seat back...one day closer to death
*/

dhf@marie.mitre.org (David H. Friedman) (06/21/91)

.  The supplier of 4DOS, J.P. Software, now has a utility like BOOTCON
which (to my knowledge) is compatible with 4DOS. At CONFIG time, it
puts up a menu that allows you to choose between different
configurations. I don't have the info in front of me, but it was
written by a Swiss and its name is BOOT.SYS or something similar.