An example batch file for set temporary PATH


/ Published in: DOS Batch
Save to your folder(s)

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

+ ${STH_HOME}=MYSQL_HOME
+ ${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


Copy this code and paste it in your HTML
  1. @echo off
  2. set ${STH_HOME}=${homeValue}
  3. set PATH=%PATH%;%MYSQL_HOME%\bin

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.