Echo %path% on separate lines?

后端 未结 3 1276
一生所求
一生所求 2020-12-12 14:36

Using the windows command prompt, can I echo %path% and get the resulting paths on separate rows? Something like this but for windows:

echo $path | tr \':\'         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 15:35

    this works for me (in a cmd window):

    powershell -Command ($env:Path).split(';')
    

提交回复
热议问题