@echo off
;
rem TESTDEF4.DAT
;
rem Convert binary executable TPSOPEN.EXE to a packet file (file TEMP.DAT),
rem sync 0xaabbccdd, packet length 297 bytes
rem then convert it back to its original form (file TEMP.EXE)
rem If you configure TPS packet format to sync 0xaabbccdd, length 297 bytes,
rem you can replay temp.dat as a packet file.
;
rem delete temporary files
if exist temp.dat del temp.dat
if exist temp.exe del temp.exe
;
rem copy over new file format
copy page0000.297 page0000.bin
ftopkt infile: ..\tpsopen.exe outfile:temp.dat page:page0000.bin
pause
pkttof infile:temp.dat outfile:temp.exe page:page0000.bin
pause
copy page0000.def page0000.bin
rem
rem compare input and output file sizes
dir temp.exe
dir ..\tpsopen.exe
echo tpsopen.exe and temp.exe should be the same size
pause
;
