This topic is now archived and is closed to further replies.



Recommended Posts

Hi On windows (nt/xp/2k, how to add a directory to PATH env variable ? When i use : char *env = toString("%s:%s", GetEnvironmentStrings("PATH") + "myPath"); SetEnvironmentVariable("PATH", env); Before setEnv, i can use system(..) funtion to call "CMD", after setEnv i can not ! Why ?

Share this post

Link to post
Share on other sites