Wednesday, December 30, 2015

Command Prompt Error: 'attrib' is not recognized as an internal or external command, operable program or batch file.

When we are using attrib command it may be possible that follow error may occur.
  • 'attrib' is not recognized as an internal or external command, operable program or batch file.
This error may occur because of system can not find C:\Windows\System32 . So we have to set path with this value. Follow steps for set this path.

Step-1 : Copy Path Value

Locate System32 directory in Windows directory in C drive. 
Copy this path C:\Windows\System32;



Step-2 : Set Environment Variable


Open System property and set Environment variable path and its value. Follow below instruction.




Now set variable name as path and paste path value in variable value.


Press OK button to save and close window.
Now you can run attrib command without error.

7 comments:

  1. This did not work for me because C:\Windows\System32 was already in the path

    ReplyDelete
    Replies
    1. Maybe you should type a lowercase 's' in the "System32". Like
      𝙲:\𝚆𝚒𝚗𝚍𝚘𝚠𝚜\𝚜𝚢𝚜𝚝𝚎𝚖𝟹𝟸

      Delete
  2. thank you very much, it worked for me.

    ReplyDelete
  3. this is not work for me C:\Windows\System32

    ReplyDelete
  4. i use lowercase letter for s for system and w for windows stll attrib is not recognized as internal or external command

    ReplyDelete