Category : Utilities for DOS and Windows Machines
Archive   : DAYTE.ZIP
Filename : DAYTE.PAS

 
Output of file : DAYTE.PAS contained in archive : DAYTE.ZIP
{$A+,B-,D+,E+,F-,I-,L+,N-,O-,R-,S-,V-}
{$M 4096,0,0}

Uses Dos,Crt;

const
copyright='DAYTE Copyright (C) 1990 by David E. Rye';

var
dfile : file of word;
ch : char;
y,m,d,w : word;

begin
assign(dfile,'\lastdate.log');
reset(dfile);
if ioresult <> 0 then begin
y:=1990;
m:=1;
d:=16;
rewrite(dfile);
write(dfile,y,m,d,w);
close(dfile);
reset(dfile);
end;
read(dfile,y,m,d,w);
close(dfile);
setdate(y,m,d);
writeln('Last logon: ',m,'-',d,'-',y-1900);
write('Do you wish to change the date?');
ch:=upcase(readkey);
writeln;
if ch ='Y' then exec(getenv('COMSPEC'),'/C date');
getdate(y,m,d,w);
rewrite(dfile);
write(dfile,y,m,d,w);
close(dfile);
end.

  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : DAYTE.ZIP
Filename : DAYTE.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/