@echo off
goto :begin
f 100 l14 B8 00 B8 50 1F BF 00 02 B9 D0 07 BD 02 08 BA 50 00 AD 3C 20
f 114 l14 75 03 43 75 02 31 DB AA 4A 75 0D B8 0D 0A 29 DF 29 DD 31 DB
f 128 l0e AB BA 50 00 E2 E3 06 1F 89 E9 31 DB 90 90
t=100
g 134
w 200
q
:begin
if '%1'=='' set of=abcec.txt
debug %1%of%<%~f0>nul
edit %1%of%
goto :eof
::Save the entire screen content to a file under DOS, not supporting Chinese (i.e., graphic mode)
::Can be used in pure DOS mode
::In graphic mode, it will output a file with only blank lines
::Use debug to get the content of the display buffer. Output to the file specified by %1,
::If %1 is empty, output to abcec.txt
::Used when the program output has progress display, to get the final screen information
::Note: This function call must be saved as an independent BAT file to call, not as a subroutine in the BAT program.
::The line edit %1%of% is used for testing the display result, which can be deleted when in use