CAL "command" for DOS/Win?

B

BEN RITCHEY

FamilyNet Newsgate

* An ongoing debate between Phred and All rages on ...

P: > ISTR that Unix has a "cal" command that will do things like print out
P: > a calendar for a given month/year, tell you the day of a given date,
P: > and similar essential or trivial detail (depending on your needs).
P: > So the question is, is such a thing available for DOS/Windows?

I use this:

=== <Cut> ===
Cal ver 1ù00 (c) 1995 David Stang

Syntax is:
no switch: a calendar for today, Sunday, July 25, 2004

or use any of these date formats:
MM/DD/YY 08/08/45
MM/DD/YYYY 08/08/1945
M/D/YY 8/8/45 (if month and day digits are under 10)
mon dd Aug 8
month dd August 8
month dd yy August 8, 45
month dd yyyy August 8, 1945

for this year, you need not specify year. The following are equivalent
if the current year is 1995:
Aug 8 August 8 Aug 8, 1995 8/8/95

Cal is not case-sensitive.
=== <Cut> ===

Actual output (in color, "today" indicated, ANSI.Sys loaded):
=== <Cut> ===
Cal ver 1ù00 (c) 1995 David Stang
Calendar for Sunday, July 25, 2004 09:58:08

ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
º July, 2004 º
º Sun Mon Tue Wed Thu Fri Sat º
º 1 2 3 º
º 4 5 6 7 8 9 10 º
º 11 12 13 14 15 16 17 º
º 18 19 20 21 22 23 24 º
º 25 26 27 28 29 30 31 º
º º
ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

=== <Cut> ===

--
Be well,

: Ben aka cMech http://bellsouthpwp.net/c/m/cmech617/
:
+ WildCat! Board 24/7 (337) 232-4155 33.6kBps 8,N,1
--- GoldED+/DPMI32 v1.1.5-040330 r0405
# Origin: FamilyNet - The Positronium Repository (8:8/337)

FamilyNet <> Internet Gated Mail
http://www.fmlynet.org
 
B

B. R. 'BeAr' Ederson

P: > ISTR that Unix has a "cal" command that will do things like print out
P: > a calendar for a given month/year, tell you the day of a given date,
P: > and similar essential or trivial detail (depending on your needs).
P: > So the question is, is such a thing available for DOS/Windows?

Gcal is the most advanced command line calendar program for Windows I
know of. It is part of the GnuWin distribution of Unix utilities:

http://gnuwin32.sourceforge.net/packages/gcal.htm

Besides msvcrt.dll you need libintl.dll and (depending on your version
of libintl.dll) maybe libiconv.dll. Chances are, you have to rename
these *.dll's from version-specific to their more general names.

An interesting German website regarding calendar programs is:

http://www.computus.de/kalenderlinks/kalenderlinks.htm

HTH.
BeAr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top