1 @ECHO OFF 2 TITLE NX 环境变量设置 3 color 3f 4 :MENU 5 CLS 6 ECHO. NX环境变量设置工具 7 ECHO.*********************************************** 8 ECHO. 1. NX 8.5 9 ECHO. 2. NX 10 10 ECHO. 3. NX 12 11 ECHO. 4. NX 1899 12 ECHO.*********************************************** 13 set choice= 14 set /p choice=请直接输入对应数字回车: 15 if not "%choice%"=="" set choice=%choice:~0,1% 16 if /i "%choice%"=="1" setx /M UGII_BASE_DIR "C:Program FilesSiemensNX 8.5" 17 if /i "%choice%"=="2" setx /M UGII_BASE_DIR "C:Program FilesSiemensNX 10.0" 18 if /i "%choice%"=="3" setx /M UGII_BASE_DIR "C:Program FilesSiemensNX 12.0" 19 if /i "%choice%"=="4" setx /M UGII_BASE_DIR "D:Program FilesSiemensNX1899" 20 ECHO. 21 ECHO.输入无效,请重新输入... 22 timeout /t 2 /nobreak >NUL 23 ECHO. 24 goto MENU 25 26 EXIT