attrib is not a recognized command in cmd

attrib command troubleshooting:

attrib is not a recognized command

  When you try to use some attrib commands in command prompt like ” attrib -h -r -s /s /d e:*.* ” There may be any one of the following reasons:


  • Check with your command given, Check for spell mistakes and spaces.
  • You have given the command correctly, but it’s not found in the directory. You may fail to give the class path, where the Command prompt variables are defined. 

set path

  •  My Computer – > Properties -> Advanced -> Environment variables
  • In system Variables, double click on the path to edit.
  • Give these two paths there, If not Present. 

                        1. C:\WINDOWS\system32;   

                        2. C:\WINDOWS

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here