On Tue, 21 Nov 2000 01:40:02 -0500 (EST), Thomas Mueller wrote:
>> There *may* be a way to do this within autoexec.bat for whichever OSes
>> you're using. Since time/date are system variables you should be able
>> to use them to change to correct date. Just stick to month/day and add
>> the year with something like "date $1 $2 2000" or some such in the
>> appropriate format for your system/OS
>> l.d.
> I wouldn't know how to capture the system date for a .BAT file in DOS. I
might
> study REXX and find a way to do it for a .CMD file in OS/2. Unix ought to
have
> a way, Unix shells being so much more powerful than DOS shells. It would be
> possible in DOS, and probably OS/2, to set the year to 2000 without changing
the
> month and day, using assembler language.
BTW, to capture system date, could anyone use some small EXEs that I wrote
that work as indicated in the screen capture shown below? These programs
can be used in autoexec.bat:
------------ begin screen capture --------
C:\LOG>login
The file `LOGIN.DAT' is now open for appending data.
Enter your initials.swh
swh logged in on 11-21-:0 at 10:37:41 has been written to `LOGIN.DAT'.
The file `LOGIN.DAT' is now closed.
C:\LOG>logout
The file `LOGIN.DAT' is now open for appending data.
Enter your initials.swh
swh logged out on 11-21-:0 at 10:38:00 has been written to `LOGIN.DAT'.
The file `LOGIN.DAT' is now closed.
C:\LOG>type login.dat
swh logged in on 11-21-:0 at 10:37:41.
swh logged out on 11-21-:0 at 10:38:00.
C:\LOG>
------------ end screen capture ------
The programs that do this are listed as follows:
LOGIN EXE 11,264 3-09-95 3:25p
LOGOUT EXE 11,264 3-09-95 3:36p
If anybody wants these, just ask, and I will send them to you by
private email.
All the best,
Sam Heywood
-- This mail sent by Arachne, www graphical browser for DOS
-- Visit the Arachne DOS Browser Home Page, http://home.arachne.cz