As the title says when launching the command attrib
in the CMD to change the properties of a file the command is not recognized although in the past I used it without problems.
I was recently making changes to the system (not user) Path variable and some were removed, I think there might be a connection.
If I type attrib
in C:\Windows\System32\
I get a list of all the dlls in the folder like so:
A C:\Windows\System32\xwtpdui.dll
A C:\Windows\System32\xwtpw32.dll
A C:\Windows\System32\X_80.contrast-black.png
But if I do it from C:\Users
I get:
"attrib" no es reconocido como un comando interno o externo,
un programa ejecutable o un file batch.
The commands that you try to execute in the terminal are searched in a series of folders configured in the environment variable called
PATH
.If you have modified that variable (or deleted it), then typical command line programs will not be found unless you specify the full path to them.
You can check whether or not the folder is in your environment variable by
C:\Windows\System32
entering a terminal and executing the commandPATH
. If it isn't, that's where the problem comes from.You can restore that environment variable by running the "System Properties" command from the Start menu, and there on the "Environment Variables" button. Look for the variable called PATH among the system variables. If you can't find it, that's where the problem comes from. Create it and give it at least the following two values: