- Aug
- 2,058
- 83
I am printing off a very large PDF file, but only about 10 pages per day.
Instead of writing down the last pages that I printed, I have modified my .BTM to record the last pages that I printed at the end of the .BTM
Thus, the last time I ran the .BTM, I started it with;
which appended the line
to the end of the .BTM file.
The next time I want to print off more of my PDF file, I simply do a
to see where I left off.
This technique could also be used to track when a .BTM was last executed, along with command line arguments, environment variables, etc.
Joe
Instead of writing down the last pages that I printed, I have modified my .BTM to record the last pages that I printed at the end of the .BTM
Code:
@setlocal
@echo off
activate "My Large PDF Document*"
keystack Ctrl-P
delay 1
keystack Alt-G
delay 1
keystack Tab
delay 1
keystack "%1 - %@eval[%1+9]"
echo Last Printed %1 - %@eval[%1+9] %_ISODATE %_TIME >> %_batchname
endlocal
quit
Last Printed 71 - 80 2017-08-11 08:46:27
Thus, the last time I ran the .BTM, I started it with;
Code:
PrintIt.btm 71
Code:
Last Printed 71 - 80 2017-08-11 08:46:27
The next time I want to print off more of my PDF file, I simply do a
Code:
tail PrintIt.btm
This technique could also be used to track when a .BTM was last executed, along with command line arguments, environment variables, etc.
Joe