batch add environment variables

@echo off
set QTPATH=E:\baktest
Path|find  "%QTPATH%\2017" 
if "%ERRORLEVEL%"=="0" goto :run1
wmic ENVIRONMENT where "name='Path' and username='<system>' " set VariableValue="%path%;%QTPATH%\2017"

Reference from: https://zhidao.baidu.com/question/306123351781463924.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325020394&siteId=291194637