home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
netdor3.zip
/
DISK_11
/
IMAGE10.ZIP
/
PMCAL
/
CALPRT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-08-08
|
839b
|
28 lines
rem CALPRT beginmonth endmonth year file
rem where beginmonth is the first month to be printed
rem where endmonth is the last month to be printed
rem where year is the year to be printed
setlocal
set beginmonth=%1
set endmonth=%2
set year=%3
set file=calprt.ps
if %1.==. set beginmonth=1
if %2.==. set endmonth=12
if %3.==. set year=1991
if not %4.==. set file=%4
set filetmp=calprtmp.ps
cal2ps %year% %beginmonth% %endmonth% >%filetmp%
echo /year %year% def >>%filetmp%
echo /beginmonth %beginmonth% def >>%filetmp%
echo /endmonth %endmonth% def >>%filetmp%
copy %filetmp% + pmcal.ps %file%
rem copy %filetmp% + %CORE.DRIVE%pmcal\pmcal.ps %file%
shift
shift
shift
shift
if %file%==gprint.ps gprint %file% %1 %2 %3 %4 %5 %6 %7 %8 %9
if %file%==GPRINT.PS gprint %file% %1 %2 %3 %4 %5 %6 %7 %8 %9
endlocal