Irish,
Use this one. I had two lines near the end of the script reversed.
Ron
proc main
integer iDay, iMonth, iYear, iMin, iHour, iSec
string fname
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt fname "History_%02d_%02d_%d_%d_%d.txt" iMonth iDay iYear iHour iMin
set capture...