开发者

How to make a program to have its own version of PATH env

开发者 https://www.devze.com 2023-01-28 12:05 出处:网络
I want to know if I can开发者_JAVA百科 have custom version of PATH env variable specific to my executable? Use Environment.GetEnvironmentVariable() and Environment.SetEnvironmentVariable() to get and

I want to know if I can开发者_JAVA百科 have custom version of PATH env variable specific to my executable?


Use Environment.GetEnvironmentVariable() and Environment.SetEnvironmentVariable() to get and set PATH from within your program.


Can you wrap your executable in a script (batch file), that would to two things: (1) set the PATH; (2) invoke the original executable?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号