Using the Windows Environment
After working with DIR command and its switches, you realize that you always use /O and /P. Windows stores important settings in an area of memory called the Windows environment. The settings in the Windows environment are assigned to environment variables. An environment variable is a symbolic name associated with a specific setting. To assign a setting to an environment variable, use the SET command. Its syntax isSET variable = string ,where variable is the name of the environment variable, and string is the setting you want to assign to the variable.
SET DIRCMD=/P / O
Note that it’s not a space between DIRCMD and the equal sign. You may see the contents of Windows environment, typeSETand then press Enter. To remove the DIRCMD variable and its settings from the environment, typeSET DIRCMD=and then press Enter.
What is the setting of your PATH environment variable ?
What is the meaning of this sequence of directories ?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here