Windows File System Basics 1.2 - Small error in guide - wrong command referenced

This might be the most pedantic post ever. Sorry in advance.
On step #20:


The guide instructs to use the command echo %PATH% which will correctly give the following list of environment variables.

However, on step #25:


The guide passively compares the contents of the Environmental Variables page to the output of the type %PATH% command instead of the echo %PATH% command earlier.

The output of these commands are different as it doesn’t list all of the variables, but rather only the ones that do not contain spaces and throw an error of some kind. (See how C:\Program Files\ is reduced to C:\Program. in the error message. Weird huh?)

This does not effect the lesson in any major way, though it does raise a question. Why is it that even though user cybrary has admin permissions and is using an elevated terminal, access is still denied to C:\Windows? Especially for a command that just reads text.

Aspect echo type
Purpose Displays strings or environment variable values to the console. Displays the contents of a file.
Input Interpretation Interprets arguments directly (including variables like %PATH%). Treats arguments as file names.
Variable Expansion Expands environment variables and prints them. Does not expand variables for output—tries to open the value as a file name.
Example Behavior echo %PATH% prints the current PATH string. type %PATH% fails because it tries to read a file with the name literally equal to the value of %PATH%.

The error has been corrected in the lab. Thanks for pointing it out.

1 Like