如何在Windows中导出和导入环境变量?

C:\> SET >> allvariables.txt

 

set TODAY=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2%

regedit /e "%CD%\user_env_variables[%TODAY%].reg" "HKEY_CURRENT_USER\Environment"
regedit /e "%CD%\global_env_variables[%TODAY%].reg" "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"

https://qa.1r1g.com/sf/ask/39187151/

如何在Windows中导出和导入环境变量?

上一篇:C# typeof和dictionary字典、MethodInfo、


下一篇:利用位运算处理权限分配来优化数据库存储,并且提高运算效率