Environment Variable is too large on Windows 10

前端 未结 13 1897
轮回少年
轮回少年 2020-12-12 09:28

I know this is strange and I have spent almost 3 days searching for the solution online without getting a useful one. So I have decided to come here.

I have recentl

13条回答
  •  庸人自扰
    2020-12-12 09:40

    There are few ways to clean up your path variable. The easiest is to use Rapid Environment Editor. This free utility will,

    1. Remove the duplicate paths (right click > Cleanup Paths)
    2. Remove non-existent folders (shown in red which you need to manually delete)
    3. Replace long paths with short paths (right click > long to short path).

    I do above steps in order and use 3rd step only for longest paths until Path variable size is in control again.

    If you want to go more advanced, here's little C# tool that you can modify to whatever other logic you want to implement.

提交回复
热议问题