in this example we use a Windows port of the UNIX cal command. it displays a calendar. it is available here: http://home.comcast.net/~mjvincent/
now, that could be quite useful if you want to display a calendar, but hate the math that would be required to do that in Rainmeter.
first of all, we need to create a text file that Rainmeter can read. we use > as redirection option to write the command line output to a text file. http://technet.microsoft.com/en-us/library/bb490982.aspx
so, let's create a batchfile called cal.bat in the same folder where cal.exe is:
Code: Select all
cal.exe > cal.txt
of course you can also add command line option as in this example to create a calendar for the whole year:
Code: Select all
cal.exe -y > cal.txt
the bad part is that every time you run this batchfile a console window will pop up. this can be solved by creating a Visual Basic Script called cal.vbs in the same folder:
Code: Select all
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "cal.bat", 0
Set WshShell = Nothing
example skin attached.