The attrib command allows an MS-DOS and Windows command line user to change the attributes of a file or folder. For example, you could recover hidden files using the attrib command. The attrib command is available in the Command Prompt in all Windows operating systems including Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, and other older versions of Windows.