本地启动mysql,redis,oracle的window10脚本
E:
cd E:\softWare\redis
redis-server redis.windows.conf
echo redis start OK,this window will closed by 5 seconds !
ping 127.1 -n 6 >nul
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
net start mysql
@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
net start OracleOraDb11g_home1TNSListener
net start OracleServiceORCL
pause
文件路径不一样,看着改就行了,mysql前三行是获取管理员权限
新建文档.txt 改成.bat格式就行了