Issue
I want to append %MYSQL_HOME%\bin
and %CATALINA_HOME%\bin
to the Path
system environment variable on Windows, but I want to append these only if they are not already appended. How do I do it on the command prompt or in a batch script?
Solution
Here's another solution:
path|find /i "%MYSQL_HOME%\bin" >nul || set path=%path%;%MYSQL_HOME%\bin
path|find /i "%CATALINA_HOME%\bin" >nul || set path=%path%;%CATALINA_HOME%\bin
Answered By - foxidrive Answer Checked By - Pedro (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.