Yes, I also thought of adding it through the registry at first, but then I thought that because it's using expandable characters (I said binary at first, but later found out it's expandable string, sorry), the exported registry is a long string of numbers, so I gave up, and accidentally discovered the method of using AUTOEXEC.BAT just now. Now the method using the registry has also been successful. Actually, expandable characters don't affect, you can directly use the general REG_SZ. The method is as follows:
@ECHO OFF
SET SE=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
REG ADD "%SE%" /V Path /t REG_EXPAND_SZ /d %PATH%G:\ACCESS; /f
@ECHO ON
Note that %SPATH%G:\ACCESS; Note that there is no ; between the original variable and the added one