@echo off
title mongodb
echo start-- mongodb
set MON_HOME="E:\software\Mongodb\bin"
E:
color 0a
cd %MON_HOME%
mongod --dbpath E:\software\Mongodb\bin\data
exit
@echo off
title redis
echo start -- redis
set ENV_HOME="D:\Redis-x64-3.2.100"
D:
color 0a
cd %ENV_HOME%
redis-server.exe redis.windows.conf
exit
VB脚本(同目录)后台运行:
set ws=wscript.createobject("wscript.shell")
ws.run "start-redis.bat /start",0
参考: