bat文件启动外壳
来源:互联网 发布:数组的indexof方法 编辑:程序博客网 时间:2024/04/30 02:22
@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
- bat文件启动外壳
- 开机启动bat文件
- Java操作Bat文件,启动Bat
- 自动启动Jetty bat文件
- bat启动文件或者服务
- 通过bat文件启动程序
- 启动jar文件bat脚本
- windows 开机启动Bat文件
- weblogic启动外壳
- 虚拟机启动的一个Bat文件(启动虚拟机.bat)
- windows定时任务 bat文件 定时启动
- windows bat脚本启动jar文件
- 巧妙使用bat文件启动cmd
- oracle 启动和关闭bat文件
- uap studio 启动bat文件研究
- WIN 7 + 启动服务+bat文件
- colinux 的bat文件启动蓝屏问题
- 点击startup.bat文件无法启动Tomcat
- rootfs的挂载过程
- 应该脱口而出的100个精典英文句子
- AJAX TabContainer 样式设置
- C++多态行为的不确定性
- windows 进程
- bat文件启动外壳
- 水晶报表自动换页
- 很好的一个个人博客主业
- 工作体验
- 硬盘分区概念
- 堆与栈 与回调函数 与windows消息
- 我的型体训练
- 做一个小东西很难!
- 开始习惯自动加班