🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #4110

Re: DOS batch quirks and environment variable weirdness.

#4110
From: Steve_Kite
Date: Fri, 19 Oct 1990 13:56
19 lines
1431 bytes
You're evidently not familiar with 4DOS, a command.com replacement.
It allows you to read the date and/or time and set them up as
enviornment variables.  This way they are accessible from any
program.

It also lets you parse out any part of the string that you want.
My autoexec.bat file reads the date, parses out the day, and
sets the prompt accordingly, so I can have a different prompt 
for each day of the week.  It also takes the date, parses
out the year, figures out which anniversary, etc. it is, and
reminds me of it.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~  If a jimbuck stands alone by the sea, on a night when the    ~
~  dark moon sings, how many grains on sand in a single one of  ~
~  his footprints?                                              ~
~                                                               ~         
~  steve kite     -   hp-ptp!stevek   -   stevek@hp-ptp.HP.COM  ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <1400056@hp-ptp.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!hplabs!hpcc05!hp-ptp!stevek
References: <1990Oct15.102216.15639@csun.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!hplabs!hpcc05!hp-ptp!stevek
From: stevek@hp-ptp.HP.COM (Steve_Kite)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: DOS batch quirks and environment variable weirdness.
Message-ID: <1400056@hp-ptp.HP.COM>
Date: 19 Oct 90 13:56:36 GMT
References: <1990Oct15.102216.15639@csun.edu>
Organization: HP Pacific Technology Park - Sunnyvale, Ca.
Lines: 19