mkrdemo.bat

来自「还是一个词法分析程序」· Batch 代码 · 共 45 行

BAT
45
字号
ECHO OFF
REM ===========================================================
REM This batch file generates TVRDEMO.EXE, which is an overlaid
REM version TVDEMO that also uses resource files.
REM ===========================================================

REM Compile the program which generates the resource file...
TPC /m/l genrdemo
if errorlevel 1 goto fail
GENRDEMO
if errorlevel 1 goto fail

REM ===========================================================
REM To compile this demo with debug information, use the
REM following line:
REM TPC /m/v/l tvrdemo

REM Or use the following line to compile without debug info:
TPC /m/l tvrdemo

if errorlevel 1 goto fail

REM ===========================================================
REM To generate a Turbo Debugger .TDS file, use the command
REM line above to generate debug info, and remove the REMs
REM from the following 2 lines:
REM tdstrip -s tvrdemo
REM touch tvrdemo.tds

if errorlevel 1 goto fail

REM ===========================================================
REM Use the DOS COPY command to append the overlay file and
REM the resource file to the end of the EXE file.  You must
REM specify the /B (binary) option for the COPY command.
COPY /B TVRDEMO.EXE+TVRDEMO.OVR+TVRDEMO.TVR TVRDEMO.EXE
DEL TVRDEMO.TVR
DEL TVRDEMO.OVR
goto success

:fail
echo Error encountered building TVRDEMO.EXE

:success

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?