Unexpected error report

#1
Recently my old batch file when runs erratically reports this report:
TCC: (Sys) C:\BTM\tlj.btm [5] Access is denied.
"C:\TMP\COUT8bc.JPS"

The batch file is below:
Code:
@echo off
setlocal
tasklist 4nt  >  clip:
tasklist tcc  >> clip:
tasklist tcmd* >> clip:
tasklist shra* >> clip:
set x=%@lines[clip:]
iff %_4ver gt 10 then
  set mm=0
  forn %n in (0,1,%x) set mm=%@max[%mm,%@len[%@clip[%n]]]
endiff
do n=0 to %x
  set task=%@clip[%n]
  set pid=%@word[0,%task]
  set task=%@word[1-99,%task]
  switch %@isdigit[%pid]
  case 0
  set act=*
  set pid=%@left[-1,%pid]
  case 1
  set act= ``
  endswitch
  iff %_4ver gt 10 then
  echo %@f5[%pid] %act %@format[-%mm,%task] %@pidcommand[%pid]
  else
  echo %@f5[%pid] %act %task
  endiff
enddo
Note: The filename in %TMP depends on the TCC instance.