home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem POVQ.btm
- rem
- rem A Queueing program for POV-ray.
- rem
- rem Written by Dragon Cotterill. If you like this program please send e-mail
- rem to CIS:100014,3230 or draconis@cix.compulink.co.uk
- rem
- text
- +-----------------------------------------------------------------------+
- | POVQ - A Queueing system for POV-ray |
- | By Dragon Cotterill |
- +-----------------------------------------------------------------------+
- endtext
- :start
- if %@len[%1]==0 goto listem
- set fred=%@substr[%1,0,1]
- if %fred==%@char[43] goto leap
- if %fred==%@char[45] goto leap
- echo ``>>d:\povray\povq.dat
- echo Adding %@name[%1].pov to the render list
- echos %@name[%1].pov >>d:\povray\povq.dat
- echos ` `>>d:\povray\povq.dat
- shift
- goto start
- :leap
- echos %1 >>d:\povray\povq.dat
- echos ` `>>d:\povray\povq.dat
- shift
- goto start
- :listem
- echo.
- if not exist d:\povray\povq.dat goto no_files
- set total=%@lines[d:\povray\povq.dat]
- echo There are %total jobs in the queue:
- set count=1
- :loop
- echo %count - %@line[d:\povray\povq.dat,%count]
- if %count==%total goto end
- set count=%@eval[%count+1]
- goto loop
- :no_files
- echo There are no jobs in the queue at present.
- :end
-