high6 Posted March 10, 2009 Posted March 10, 2009 What is it called that "PATH" accesses? Also how do you add and remove a directory to it?
Ufo-Pu55y Posted March 10, 2009 Posted March 10, 2009 Calling SetEnvironmentVariable has no effect on the system environment variables. The user can add or modify system environment variables using the Control Panel. To programmatically add or modify system environment variables, add them to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\Session Manager\Environment registry key, then broadcast a WM_SETTINGCHANGE message. This allows applications, such as the shell, to pick up your updates. Note that environment variables listed in this key are limited to 1024 characters.If that's wut you meant.
high6 Posted March 10, 2009 Author Posted March 10, 2009 I mean how when you type "PATH" in cmd it brings up all those directories, how do you add/remove those directories?
Ufo-Pu55y Posted March 10, 2009 Posted March 10, 2009 Dooh simply try to read the quote again ! Add/remove it manually, or programmatically (like some installers surely do)or via the control panel into registry :?Other values from that reg folder can be accessed in cmd aswell.. like %os%, %pathext% or similar ****
high6 Posted March 11, 2009 Author Posted March 11, 2009 okay, didn't know it was done like that. Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now