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
There are few ways to clean up your path variable. The easiest is to use Rapid Environment Editor. This free utility will,
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.