Subj : I still discover... To : All From : Laurent Jumet Date : Tue Feb 05 2002 12:44 pm From: Laurent.Jumet@f3.n342.z1.cereal.mv.com (Laurent Jumet) Subject: I still discover... From: 1st_NAME.Lst_NAME@advalvas.be (Laurent Jumet) Hello ! I'm using 4dos since years, and I still discover things...:-) I'm loading the whole environement from a file VARLIST, using the set/r command in autoexec.bat This is the PROMPT line, which aims to show me some parameters about my system: === Begin varlist === PROMPT=$s($e[33;1;5;m$z$e[0m) $m ($e[32m%@dosmem[K]$e[0mK) ($e[36m%@xms[K]$e[0mK) ($e[34m%@EMS[K]$e[0mK) $d C:=$e[37;1m%@DISKFREE[c:,M]$e[0mMega D:=$e[37;1m%@DISKFREE[d:,M]$e[0mMega$e[0m$_$P$e[1;37m$g$e[0m === End varlist === What I'd like you to look at, is that the variables have only one leadind "%", and should have two if introduced from the command line, to avoid the PROMPT showing always the same first value. If you use two "%" above, you'll get not the value but the variable name itself. Now... I choose to change the prompt when in secundary shells, and I do it with 4START.BTM But... The rules are *not* the same in 4START.BTM: in this particular case, the two "%" are requested. During years, I didn't notice that...:-) Only my first shell was updated, not my secundarys. The PROMPT in 4start.btm must be: === Begin 4start.btm === PROMPT=$s($e[33;1;m$z$e[0m) $m ($e[32m%%@dosmem[K]$e[0mK) ($e[36m%%@xms[K]$e[0mK) ($e[34m%%@EMS[K]$e[0mK) $d C:=$e[37;1m%%@DISKFREE[c:,M]$e[0mMega D:=$e[37;1m%%@DISKFREE[d:,M]$e[0mMega$e[0m$_$P$e[1;37m$g$e[0m === End 4start.btm === ,with the two leading "%". Laurent Jumet - Point de Chat, Liege, BELGIUM KeyID: 0xCFAF704C [Restore address to laurent.jumet for e-mail reply.] -- |Fidonet: Laurent Jumet 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .