Jump to content
Tuts 4 You

add/remove cmd "PATH"?


high6

Recommended Posts

Posted

What is it called that "PATH" accesses? Also how do you add and remove a directory to it?

Posted
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.

Posted

I mean how when you type "PATH" in cmd it brings up all those directories, how do you add/remove those directories?

Posted

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 ****

Posted

okay, didn't know it was done like that. Thanks

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...