' ' Utility to change the font numbers of all files ' matching specified template. Prompts for each file ' ' Written by Keith Baines in HiSoft Basic. ' January 1990 ' ' DEFINT A-Z LIBRARY "GEMDOS" DIM SHARED DTA(21) ' Buffer for fsfirst/fsnext calls CONST TRUE=-1 CONST FALSE=0 BANNER CommandParse GetFont FontPath$,FontName$ NewNum=VAL(FNGetToken$(1)) IF FontName$="" THEN Usage GetKey STOP -1 END IF IF NewNum=0 THEN IF FNGetToken$(1)<>"" THEN PRINT "Invalid Font Number: ";FNGetToken$(1) PRINT END IF Usage GetKey STOP -1 END IF CALL Init_DTA Get_Files FontPath$+FontName$ IF Num_Files<=0 THEN PRINT "No matching files" Usage ELSE Renumber_Files FontPath$,NewNum END IF Reset_DTA GetKey STOP -1 SUB BANNER PRINT " FONT_NUM -- a PD utility by Keith Baines -- January 1990" END SUB ' ' Display usage message ' Sub Usage PRINT PRINT " USAGE: FONT_NUM