-
Notifications
You must be signed in to change notification settings - Fork 0
/
HappyBirthday.cmd
80 lines (68 loc) · 1.95 KB
/
HappyBirthday.cmd
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
rem @echo off
::-----------------------------------------------------------------
:: QUESTOR - Questor Systems GmbH, http://www.questor.ch ([email protected])
::-----------------------------------------------------------------
::
:: HappyBirthday.cmd: Generate a Happy Birthday message for supplied name argument
::
:: Project:
:: Author: Farley Balasuriya
:: ([email protected])
:: Created: Sat May 28 13:24:42 2005
:: History:
:: v0.2 -
:: v0.1 - 28/05/05 - initial version created
::
::-----------------------------------------------------------------
set svn_rev=$Rev: 114 $
set svn_id=$Id: tq.cmd 114 2005-04-25 13:59:09Z farley $
set svn_LastChangedDate=$LastChangedDate: 2005-04-25 15:59:09 +0200 (Mon, 25 Apr 2005) $
::-----------------------------------------------------------------
:: Questor Sytesms GmbH, Basel, CH-4053, Schweiz
:: http://www.questor.ch, mailto:[email protected]
::-----------------------------------------------------------------
:QSCDEInit
if not %QS_Init%.==1. call QSCDE
:ARGS
if %1.==-h. goto USAGE
if %1.==-H. goto USAGE
if %1.==-?. goto USAGE
if %1.==--help. goto USAGE
if %1.==--HELP. goto USAGE
if %1.==-v goto VERSION
if %1.==-V goto VERSION
if %1.==--version goto VERSION
if %1.==--VERSION goto VERSION
if %1.==. goto USAGE
:SETS
set MSG=c:\TEMP\birthday.txt
rem set FONT=-f cyberm
:START
if exist %MSG% del %MSG%
call figlet %FONT% Happy Birthday, to you! > %MSG%
call figlet %FONT% Happy Birthday, to you! >> %MSG%
call figlet %FONT% Happy Birthday, dear %*! >> %MSG%
call figlet %FONT% Happy Birthday, to you! >> %MSG%
call ed %MSG%
goto END
:USAGE
echo usage: %0, %svn_rev%
echo %0 Name
echo Description:
echo Generate a Happy Birthday message for supplied name argument
echo.
echo you must spply the name!
goto END
:VERSION
echo filename: %0
echo $Id: tq.cmd 114 2005-04-25 13:59:09Z farley $
echo $Rev: 114 $
echo $LastChangedDate%
goto END
:ERR1
echo %0: Err1:
goto END
:ERR2
echo %0: Err2:
goto END
:END