"This program cannot be run in DOS Mode" is the error message a 32-bit Windows executable gives when you try to run it in MS-DOS. Based on that I think your attrib.exe is from a Windows installation as is not a DOS Executable, so you cannot use it there.