%debug%在批处理文件开始部分:
: DOSNETX/7 DOS AUTOEXEC Batch File
: (c) 1997-2007, David Rin <rendaa@gmail.com>
: Rev 6.70216
:
@if .%debug%==. echo off
if .%rtd%==. set rtd=C:
for %%f in (A: A:\DOS) do if .%comspec%==.%%f\COMMAND.COM set rtd=A:
if .%0==. if exist \DOS\DOSKEY.* lh /s \DOS\DOSKEY /insert /b:2048
if .%0==. if exist %rtd%\dos\nul path %rtd%\DOS
if not .%0==. goto _bat_chain
if not .%config%==.DOSCMD goto _normal
if exist \DOS\DOSMACRO.BAT call \DOS\DOSMACRO.BAT
goto _end