I have added a function to FNSNAP.dll to remedy this FNCLRSPL
IF you add this to your menu program just before your user exits from BR it will clear both the PDF and regular files stored in the spool directory.
IF you would rather just add the code it is listed below:
Code: Select all
00300 DEF LIBRARY FNCLRSPL(;_A$*250,_B$*250) !:
! ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿!:
! ³ Clears the SPOOL directory for all files for the current ³!:
! ³ SESSION$ number ³!:
! ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ!
00305 OPEN #1: "NAME=[SPOOLPATH]\test.txt,replace",DISPLAY,OUTPUT
00310 PRINT #1: "XXXXXXX"
00315 LET _A$=FILE$(1)
00320 CLOSE #1:
00325 LET _B$=SREP$(_A$,"test.txt","")
00330 EXECUTE "free "&_B$&"wbspl"&SESSION$&".*" IOERR 335
00335 EXECUTE "free "&_B$&"brpdf"&SESSION$&".*" IOERR 340
00340 FNEND