One way to cope with the path limit is to shorten path entries with symbolic links.
For example:
- create a
C:\p directory to keep short links to long paths
mklink /J C:\p\foo C:\Some\Crazy\Long\Path\foo
- add
C:\p\foo to your path instead of the long path