@echo off
rem <Item>AutoExe.bat</Item>
rem <Item>Date :2009/12/17</Item>
rem <Item>Author:ThinkinGall</Item>
rem <Item>変更履歴</Item>
rem <Item></Item>
@echo off
set filePath=BatFile
:inputstart
set paramPath=""
set /P paramPath=please input invoke file path:
IF /i %paramPath% == "" GOTO inputend
IF NOT EXIST %paramPath%/ (echo Not a directory) else (GOTO inputExist)
GOTO inputstart
:inputend
set paramPath=%filePath%
:inputExist
echo invoke file path is:%paramPath%
:start
rem 初期化パラメータ
set param=""
set /P param=変数[-install,-run,-kill,-reset,-cls,-end,-exit]:
IF /i "%param%" == "-install" GOTO install
IF /i "%param%" == "-run" GOTO run
IF /i "%param%" == "-kill" GOTO kill
IF /i "%param%" == "-reset" GOTO inputstart
IF /i "%param%" == "-cls" GOTO cls
IF /i "%param%" == "-end" GOTO end
IF /i "%param%" == "-exit" GOTO exit
echo no match command
echo --------------------------------------
GOTO start
:install
echo --start--%paramPath%/install.bat
call %paramPath%/install.bat
echo --end----%paramPath%/install.bat
echo --------------------------------------
GOTO start
:run
echo --start--%paramPath%/run.bat
call %paramPath%/run.bat
echo --end----%paramPath%/run.bat
echo --------------------------------------
GOTO start
:kill
echo --start--%paramPath%/kill.bat
call %paramPath%/kill.bat
echo --end----%paramPath%/kill.bat
echo --------------------------------------
GOTO start
:cls
cls
GOTO start
:end
echo command run over......
echo --------------------------------------
:exit
////////////////////////////////////////////
cmd->win.ini
cmd->system.ini
dir C:/WINDOWS/System32/*.exe > D:/system32_exe.txt
dir C:/WINDOWS/System32/*.dll > D:/system32_dll.txt
fc D:/system32_exe.txt D:/system32_exe1.txt > D:/system32_exe_差分.txt
fc D:/system32_dll.txt D:/system32_dll1.txt > D:/system32_dll_差分.txt
cmd->netstat -an
6752

被折叠的 条评论
为什么被折叠?



