Command Prompt - How to add a set path only for that batch file executing?

前端 未结 3 1649
北海茫月
北海茫月 2020-11-30 18:02

Basically, I know I can go through my control panel and modify the path variable. But, I\'m wondering if there is a way to through batch programming have a temporary path in

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 18:18

    There is an important detail:

    set PATH="C:\linutils;C:\wingit\bin;%PATH%"
    

    does not work, while

    set PATH=C:\linutils;C:\wingit\bin;%PATH%
    

    works. The difference is the quotes!

    UPD also see the comment by venimus

提交回复
热议问题