home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
ktfc
/
ktfc0d5.zip
/
DATEFIL0.5
next >
Wrap
Text File
|
2000-05-24
|
975b
|
38 lines
; File datefil0.5, copyright (C) Peter Lyall Easthope, 2000.
; All rights reserved.
;
; This Kermit script determines the name of a file according to the
; current date. If the file does not exist, one is created and
; initial text is placed in it. Finally a DOS batch file containing
; one line, which opens EDIT on the date-named file, is created.
;
echo {Beginning datefil}
def InitOut {
open write \v(ndate).out
xif failure {
echo {Can't open editdate.bat}
echo {}
exit
}
writeln file {To: peter_easthope@gulfnet.pinc.com}
writeln file {Subject: }
writeln file { }
writeln file {**EndOfMsg**}
writeln file {**EndOfMsg**}
close write-file
}
if not exist {\v(ndate).out} InitOut
; Make a DOS batch file with a command to edit the
; yyyymmdd.out file.
open write editdate.bat
xif failure {
echo {Can't open editdate.bat}
echo {}
exit
}
writeln file {edit \v(ndate).out}
close write-file
exit