开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜