display any month calendar the unix command 'cal' way

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
scavenger
Posts: 8
Joined: 23 May 2015 13:51
Contact:

display any month calendar the unix command 'cal' way

#1 Post by scavenger » 10 Feb 2020 15:04

hi

i need to display the current and previous month' calendar the unix way in a menu I build:

Code: Select all

   February 2020
Su Mo Tu We Th Fr Sa
                   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
Please has anyone ever developed this so i can reuse it? I found a powershell example at https://communary.net/2014/12/21/show-c ... owershell/ but it's massive and I'm pretty sure this can be done under 10 lines.
thanks


Post Reply