主程序:
@echo off
setlocal enabledelayedexpansion
del /f /q LIST
echo %userprofile%>CRTFOLDER
set t=命令提示符
title %t%
for /f "tokens=4 delims= " %%i in ('ver') do echo Microsoft Windows [版本%%i
echo (c) 2015 Microsoft Corporation. All rights reserved.
echo.
for /r OUTER %%i in (*.cmd) do echo %%~ni>>LIST
set crtd=%userprofile%
set crt=""
set listt=""
goto in
:in
if "%input%" NEQ "" (
if "%input%" NEQ "start" (
echo.
)
set input=
)
set /p crtd=<CRTFOLDER
set /p input=%crtd%^>
if "%input%" equ "" (
set input=
goto in
) else (
cd FUNC
call getFunc.cmd %input%
cd..
set /p crt=<CURRENT
cd FUNC
call toSmall.cmd !crt!
set /p crt=<toSmall_RST
cd..
for /f %%i in (LIST) do (
cd FUNC
call toSmall.cmd %%i
set /p listt=<toSmall_RST
cd..
if !listt! equ !crt! goto cll
)
goto other
)
:cll
call OUTER\%input%
goto in
:other
cmd.exe /c "%input%">"%temp%\BATTMP"
type %temp%\BATTMP
goto in
——来自win10贴吧客户端