Fortune Cookie Generator

Most versions of UNIX have a fortune cookie program, which will produce a witty saying when you start a session. I have written a DOS version, suitable for placing in your autoexec.bat file, so you have something to read while waiting for windows to boot up!

The zip file includes the executable and several input files, each containing many possible quotes. I suggest you extract it to C:\fortune, as the program will then find an input file without prompting. By default, the program looks for C:\fortune\fortune.txt. If you want to use another file, simply supply it as an argument.
eg. fortune c:\fortune\limerick.txt.

NB: Please note I make no guarantees as to the suitability of these fortunes for all users.

Printing a fortune at boot up.

To print a fortune at boot up time, add the following line to your autoexec.bat file:

C:\fortune\fortune.exe

(assuming you extracted the zip file to c:\fortune)
Simple, isn't it!

Downloading the files

The files are available here

This a C program, compiled under DJGPP, an excellent DOS port of the GNU compiler gcc. The zip file also contains the source code, which you are welcome to alter under the terms of the GNU public license.
If you have any comments on my site, email me.