@echo off
if "%1"=="" goto help
if "%1"=="/?" goto help
if "%1"=="/w" goto wbat
if "%1"=="/W" goto wbat
mem /c|find /i "ccdos">nul
if errorlevel 1 goto vtm
for %%a in (p P t T) do if "/%%a"=="%1" goto ccok
echo 错误的参数 %1
goto out
:ccok
for %%a in (p P) do if "/%%a"=="%1" goto cc_echo
if "%2"=="" goto out
if "%3"=="" type %2
if "%3"=="" goto out
type %2>%3
goto out
:cc_echo
echo %2 %3 %4 %5 %6 %7 %8 %9
goto out
:vtm
set _str=
set vtm_str=%1
if "%vtm_str%"=="/t" set vtm_str=/T
if "%vtm_str%"=="/p" set vtm_str=/P
for %%a in (T P) do if "/%%a"=="%vtm_str%" goto vtmok
call vtm.bat /P 错误的参数 %1
goto exit
:vtmok
if "%vtm_str%"=="/P" goto loop
shift
if "%1"=="" goto exit
set _str=%1
set vtm_str=%vtm_str% %_str%
shift
if "%1"=="" goto vtm_show
set _str=%1
goto vtm_t
:loop
shift
set _str=%1
if "%_str%"=="" goto vtm_show
set vtm_str=%vtm_str% %_str%
goto loop