After multiple experiments, it shows that: using AUTOEXEC.BAT can indeed add variables. The added variables are not written into the relevant items in the registry, and they also do not appear in the user and system variable lists in "My Computer". But these variables can play a role. After I added LANG=CHS in AUTOEXEC.BAT, Pro/E can change from the English version to the Chinese version, and changing LANG=EN can make it English. Haha, it's really interesting. After I added the SET PATH=E:\ACAD2000;E:\ACAD2000\Autodesk Shared; variable, my green AutoCAD no longer has prompts about not finding the path. This shows that the variables in autoexec.bat are indeed a good thing.
