How do you avoid over-populating the PATH Environment Variable in Windows?

前端 未结 12 1051
慢半拍i
慢半拍i 2020-11-30 16:26

I would like to know what are the approaches that you use to manage the executables in your system. For example I have almost everything accessible through the command line,

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 16:59

    Didn't try it, but will splitting PATH in parts work and joining them in final variable work?

    Example initially let's say you have something like

    PATH={LONGPATH1};{LONGPATH2};....{2048th char}....{LONGPATH_N-1};{LONGPATH_N}

    Instead you create:

    _PATH1 = {LONGPATH1};{LONGPATH2};....{2048 char}
    _PATH2 = {2049th char}...{LONGPATH_N-1};{LONGPATH_N}
    rem // may be more parts
    PATH = %_PATH1%;%_PATH2%
    

提交回复
热议问题