Posted By

jacktan on 10/30/14


Tagged

path environment Temporary


Versions (?)

An example batch file for set temporary PATH


 / Published in: DOS Batch
 

set-mysqlRT-Env.bat

before you run other commands like mysql, call this bat for temporary PATH and other environment variables。

Vars to specify

  • ${STH_HOME}
  • ${homeValue}

Demo

Vars specified like

  • ${STHHOME}=MYSQLHOME
  • ${homeValue}=E:\Programs\MySQL\MySQLServer5.6

pluss other bash commond

@echo off
set MYSQL_HOME=E:\Programs\MySQL\MySQLServer5.6
set PATH=%PATH%;%MYSQL_HOME%\bin

set mysqlConf=mysql-dev.ini

use it like call setEnv or

@echo off
call setEnv
cmd
  1. @echo off
  2. set ${STH_HOME}=${homeValue}
  3. set PATH=%PATH%;%MYSQL_HOME%\bin

Report this snippet  

You need to login to post a comment.