OTD-CSV V1.00 Nov-2007 Michael Bednarek mb@mbednarek.com On This Day In History I used the program OTD.EXE V-1.1 (1991) by The Software Construction Co. a lot; Then 64-bit computing arrived and that 16-bit program wouldn't run any more. So I set out to create a replacement for the program's most elementary functions. I did not attempt to deal with non-Gregorian calendars. This program shows famous birthdays, events, religious saints' days and personal events. The data for these events is stored in four text files, organised as CSV files. These files are accessed using the Microsoft.Jet.OLEDB engine. All four files are structured similarly: they consist of four fields: Month, Day, Year, Item. This structure is based on the file structure used by OTD.EXE. The first three fields are numeric, except for Events.CSV where the field Day is formatted as text. The field Item is a text field; if the text contains quotes, they have to be doubled and the whole field has to be surrounded by quotes. Events which fall on a certain weekday are denoted by nW where n indicates the nth occurrence of the weekday, and W indicates the weekday: M=Monday, T=Tuesday, W=Wednesday, R=thuRsday, S=Saturday, U=sUnday Example (2nd Sunday in May): 5,2U,,"Mother's Day" Example: CScript OTD-CSV.wsf /Date:2007-05-31 Have parameters /B /E /R /P to selectively print Birthdays, Events, Religous and Personal events Print week number Deal with events which fall on the Last Weekday of a month (Syntax:LW)