wmic ENVIRONMENT where " name='path' and username='' " set VariableValue = " %path%;your path; "
 
ps:记住哦,可以永久修改path变量,hoho